<template>
  <!-- <iframe
    :src="url"
    width="100%"
    height="100%"
  /> -->
  <div
    id="wrapper"
    v-resize="resize"
    v-if='ISINDEXSHOW=="Y"'
  >

    <!-- <homeTopLink ></homeTopLink> -->

    <div class="welcome-content">
      <div class="animated" style="position:fixed;bottom:40px;left:50%;z-index:100;">
    <img src="../assets/icon/todown.png" style="width:90px">
  </div>
    <div class="page-wrapper" style="position: relative;">
      <Row :gutter="12" style="background-color:#F2F2F2;margin-left:0px;margin-right:0px">
        <Col span="13" style="padding-left:0px;">
        <div class="order-panel" style="height:404px;overflow-y:auto;padding: 5px 16px 5px;background-color:#fff;position: relative;">
          <Input
            id="searchkey"
            v-model="searchKeyVal"
            type="text"
            :placeholder="placeholderText"
            @on-keydown="enterSearch"
          >
          <Select
            slot="prepend"
            v-model="searchcolumn"
            @on-change="changePlaceholder"
            style="text-align:left;width:160px; font-size: 12px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #333333;line-height: 17px;"
          >
            <Option
              id="sourcecode"
              value="SOURCECODE"
            >
              平台号
            </Option>
            <Option
              id="indexorderid"
              value="INDEXORDERID"
            >
              订单号
            </Option>
            <Option
              id="receivname"
              value="RECEIVNAME"
            >
              收货人
            </Option>
            <Option
              id="receivmobile"
              value="RECEIVMOBILE"
            >
              收货人手机
            </Option>
          </Select>
          <Button
            slot="append"
            class="searchBtn"
            icon="ios-search"
            @click="btnsearchkey1"
          />
          </Input>
          <div class="orderMsg">
            <div class="orderMsgTitle">
              <img src="../assets/icon/orderMsgPic.png" style="height:100%;margin-right:4px">
              <!-- (每3分钟刷新一次) -->
              订单信息（近3个月统计）
              <span style="margin-top: 1px;font-size:12px;color: rgb(152, 152, 152);">数据更新于{{ LocaleTimeOne }}(每10分钟刷新一次)</span>
              <span
                data-key="FRESH_1"
                style="font-size:12px;margin-left:8px;margin-top: 2px;cursor: pointer;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #63A4FE;"
                @click="refreshOrderInfo({handleType: 'false'})">刷新</span>
            </div>
            <div class="agentOrder">
              <div class="title">
                <span>待办订单</span>
                <div>
                  <Button v-if="isEditDoPanel" size="small" style="margin-right: 4px;" @click="saveModule('wtable')">保存</Button>
                  <Icon type="md-settings" @click="switchDoDrag"/>
                </div>
              </div>
              <div class="content">
                  <Draggable ref="drag" :options="{disabled: !isEditDoPanel}" tag="Row" v-model="agentOrder" :gutter="10" type="flex">
                      <Col
                        v-for="(item,i) in agentOrder"
                        :key="i"
                        span="4"
                        style="padding-left: 5px; padding-right: 5px;"
                      >
                        <div
                          class="contentPart"
                          :class="isEditDoPanel ? 'hover-drag' : ''"
                        >
                          <Tooltip
                            :disabled="item.popover!=''?false:true"
                            :content="item.popover"
                            placement="bottom-start"
                            theme="light"
                            style="width:100%"
                          >
                              <div class="itemText">{{ item.text }}</div>
                              <div class="itemNum" :style="[(item.childArr && item.childArr.length > 0) ? {}: {cursor: 'pointer'}]" @click="BusRouter(item)">{{ item.number }}</div>
                          </Tooltip>
                          <Poptip placement="bottom-end" width="160" v-if="item.childArr">
                            <span class="iconfont iconbianzu9" style="font-size:12px"></span>
                            <!-- 二级列表 -->
                            <div class="api" slot="content">
                              <ul v-for="(value,index) in item.childArr" :key="index">
                                <li @click="BusRouter(value)" style=";cursor: pointer;height:30px;border-radius:3px;color: inherit;line-height: 25px;margin: 4px;text-align: left;font-weight: normal;display: flex;justify-content: space-between;"
                                  onMouseOver="this.style.color='#00F';this.style.textDecoration='underline'"
                                  onMouseOut="this.style.color='inherit';this.style.textDecoration='none'"
                                >
                                  <span>{{value.text}}</span>
                                  <span>{{value.number}}</span>
                                </li>
                              </ul>
                            </div>
                        </Poptip>
                          <Icon v-if="isEditDoPanel" type="md-remove-circle" class="remove-panel-icon" @click="removePanel(agentOrder, i)"/>
                        </div>
                      </Col>
                      <Col v-if="isEditDoPanel" span="4" slot="footer" class="add-panel-icon">
                        <Icon type="md-add-circle" style="font-size: 40px;" @click="openDoPanelModal"/>
                      </Col>
                  </Draggable>
              </div>
            </div>


            <div class="agentOrder warnOrder">
              <div class="title">
                <span>预警订单</span>
                <div>
                  <Button v-if="isEditWarnPanel" size="small" style="margin-right: 4px;" @click="saveModule('early')">保存</Button>
                  <Icon type="md-settings" @click="switchWarnDrag"/>
                </div>
              </div>
              <div class="content">
                <Draggable ref="drag" :options="{disabled: !isEditWarnPanel}" tag="Row" v-model="warnOrder" :gutter="10">
                  <Col
                    v-for="(item,i) in warnOrder"
                    :key="i"
                    span="4"
                    style="padding-left: 5px; padding-right: 5px;"
                  >
                    <div
                      class="contentPart childItem"
                      :class="isEditWarnPanel ? 'hover-drag' : ''"
                    >
                      <Icon v-if="isEditWarnPanel" type="md-remove-circle" class="remove-panel-icon" @click="removePanel(warnOrder, i)"/>
                      <Tooltip
                        :disabled="item.popover!=''?false:true"
                        :content="item.popover"
                        theme="light"
                        placement="bottom-start"
                        style="width:100%;"
                      >
                        <div>
                          <div class="itemText">{{ item.text }}</div>
                          <div class="itemNum" :style="[(item.childArr && item.childArr.length > 0) ? {}: {cursor: 'pointer'}]" @click="BusRouter(item)">{{ item.number }}</div>
                        </div>
                      </Tooltip>
                      <Poptip placement="top-end" width="160" v-if="item.childArr">
                          <span class="iconfont iconbianzu9" style="font-size:12px"></span>
                          <!-- 二级列表 -->
                          <div class="api" slot="content">
                            <ul v-for="(value,index) in item.childArr" :key="index">
                              <li @click="BusRouter(value)" style=";cursor: pointer;height:30px;border-radius:3px;color: inherit;line-height: 25px;margin: 4px;text-align: left;font-weight: normal;display: flex;justify-content: space-between;"
                                onMouseOver="this.style.color='#00F';this.style.textDecoration='underline'"
                                onMouseOut="this.style.color='inherit';this.style.textDecoration='none'"
                              >
                                <span>{{value.text}}</span>
                                <span>{{value.number}}</span>
                              </li>
                            </ul>
                          </div>
                      </Poptip>
                    </div>
                  </Col>
                  <Col v-if="isEditWarnPanel" span="4" slot="footer" class="add-panel-icon">
                      <Icon type="md-add-circle" style="font-size: 40px;" @click="openWarnPanelModal"/>
                    </Col>
                </Draggable>
              </div>
            </div>
          </div>

        </div>

        <div class="modal-area" style="position: absolute;height: 404px;left:0;right:0;top:0;" v-if='showAddPanel'>
          <CommonModal
            :title="showDoPanel? '待办订单': '预警订单'"
            width="300"
            closable
            class="add-module-modal"
            v-model="showAddPanel"
            :transfer="false"
            :on-confirm="addPanel"
            @change="onVisibleChange">
            <div class="panels-wrap">
              <div v-if="moduleList.length === 0">暂无模块可添加</div>
              <CheckboxGroup v-model="selectedModules" v-else>
                <Checkbox style="margin-bottom: 8px;" :label="item.text" v-for="item in moduleList" :key="item.orderbiz">
                  <span>{{item.text}}</span>
                </Checkbox>
              </CheckboxGroup>
            </div>
          </CommonModal>
        </div>

        <div style="background-color:#F2F2F2">
          <div class="bestSell">
            <div class="bestSellTop">
              <div class="orderMsgTitle">
              <img src="../assets/icon/bestSellPic.png" style="height:100%;margin-right:4px">
                畅销商品
              </div>
              <div class="searchDay">
                <div :class="{'active':index==SellIsActive,'itemDay':true}" v-for="(item,index) in dayOptions" :key="index" @click="getActive(index,item.num)">{{item.text}}</div>
              </div>
            </div>
           <div class="bestSellContent">
               <Table height="315" :columns="bestSellColumn" :data="bestSellData" size="small" @on-row-click="jumpBestSell"></Table>
              <div class="pageContent">
                <Page
                  :current="SellcurrentPage"
                  :page-size="SellPageSize"
                  :total='SellTotal'
                  @on-change="changePage"
                />
              </div>
           </div>
          </div>
        </div>
        </Col>
        <Col span="11" style="padding-right:0px;">
          <div class="welcomePage">
            <serve-panel data-key="FRESH_2" :clientName='AD_CLIENT_NAME' :updateTime='LocaleTime' @refresh="refreshorderindex({ handleType: 'false' })" @receivePropHandle="receivePropHandle"></serve-panel>
            <div style='display: flex;height: 100%;overflow: hidden;'>
              <div class="companyMsg">
                <div class="title">
                  <div style="height: 20px;font-size: 14px;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #333333;line-height: 20px;display:flex">
                    <img src="../assets/icon/companyMsgPic.png" style="height:100%;margin-right:4px">
                    店铺过期提醒
                  </div>
                  <div v-if='expiresshop.length' style="height: 20px;font-size: 12px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #63A4FE;line-height: 20px;cursor: pointer" @click='linkToAuthorList'>批量授权</div>
                </div>
                <div class="detail">
                  <div v-if="!expiresshop.length" style="text-align: center;">暂无数据...</div>
                  <!-- @click="toProductDetail" 跳转详情页 -->
                  <div v-else style="display: flex;flex-direction: column;justify-content: space-between;height: 100%;">
                      <div style="overflow-y: scroll;">
                        <div  v-for="(item,index) in expiresshop" :key="index" style="margin-bottom: 8px;">
                          <!-- expiresshop -->
                          <div  :class="{ 'detail-item': item.important, 'detail-item1': !item.important }"  >
                            <div style="margin-left: 8px;cursor: pointer;color: #E54545;max-width:70%;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"><span  :class="{ 'redword': item.important, 'blueword': !item.important }" :title='item.shoptitle'>【{{item.expirestype==1?'已过期':`${item.days}天内过期`}}】{{item.shoptitle}}</span></div>
                            <div style="color: #63A4FE;cursor: pointer" @click='linkStoreDetail(item.id)'>去授权</div>
                          </div>
                          <!-- <div style="cursor: pointer;color:#63A4FE;line-height:16px" @click="jumpLink(item.link)">{{item.link}}</div> -->
                        </div>
                      </div>
                      <div v-if="expiresshop.length==1" style="text-align: center;color:#CBCBCB">暂无更多信息</div>
                  </div>
                </div>
              </div>
              <div class="companyMsg">
                <div class="title">
                  <div style="height: 20px;font-size: 14px;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #333333;line-height: 20px;display:flex">
                    <img src="../assets/icon/companyMsgPic.png" style="height:100%;margin-right:4px">
                    产品动态
                  </div>
                  <!-- <div style="height: 17px;font-size: 12px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #63A4FE;line-height: 17px;cursor: pointer" @click="moreProduct">查看更多</div> -->

                </div>
                <div class="detail">
                  <div v-if="!dynamic.length" style="text-align: center;">暂无数据...</div>
                  <!-- @click="toProductDetail" 跳转详情页 -->
                  <div v-else style="display: flex;flex-direction: column;justify-content: space-between;height: 100%;">
                      <div style="overflow-y: scroll;">
                        <div  v-for="(item,index) in dynamic" :key="index" style="margin-bottom: 8px;">
                          <div  :class="{ 'detail-item': item.important, 'detail-item1': !item.important }"  >
                            <div style="margin-left: 8px;cursor: pointer;color: #E54545;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" @click="jumpLink(item.link,item)"><span  :class="{ 'redword': item.important, 'blueword': !item.important }" :title='item.title'><span v-if='item.notice'>【</span>{{item.notice}}<span v-if='item.notice'>】</span>{{item.title}}</span></div>
<!--                            <div style="color: #999999;">{{item.time}}</div>-->
                          </div>
                          <!-- <div style="cursor: pointer;color:#63A4FE;line-height:16px" @click="jumpLink(item.link)">{{item.link}}</div> -->
                        </div>
                      </div>
                      <div v-if="dynamic.length==1" style="text-align: center;color:#CBCBCB">暂无更多信息</div>
                      <!-- <div class="pageContent">
                      <Page
                        :current="dynamicCurrentPage"
                        :page-size="dynamicPageSize"
                        :total='dynamicTotal'
                        @on-change="changePage"
                      />
                    </div> -->
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="MarketActivity">
            <div class="ActivityTop">
              <div class="orderMsgTitle">
                <img src="../assets/icon/marketActivityPic.png" style="height:100%;margin-right:4px">
                营销活动
              </div>
              <div class="searchDay">
                <div :class="{'active':index==activityIsActive,'itemDay':true}" v-for="(item,index) in startOptions" :key="index" @click="getactivityActive(index)">{{item}}</div>
              </div>
            </div>
            <div class="activityContent">
               <Table height="315" :columns="activityColumn" :data="activityData" size="small"  @on-row-click="jumpActivity"></Table>
              <div class="pageContent">
                <Page
                  :current="activitycurrentPage"
                  :page-size="activityPageSize"
                  :total='activityTotal'
                  @on-change="activityChangePage"
                />
              </div>
           </div>
          </div>
        </Col>
      </Row>
      <div class="chartContent">
        <div>
          <div class="title">
            <img src="../assets/icon/chartPic.png" style="height:100%;margin-right:4px">
            经营状况
            <!-- 1.4.7不上，先注释 -->
            <span style="margin-top: 1px;margin-left:10px;font-size:12px;color: rgb(152, 152, 152);">数据更新于{{ localTimeState }}(每10分钟刷新一次)</span>
            <span
              data-key="FRESH_3"
              style="font-size:12px;margin-left:8px;margin-top: 2px;cursor: pointer;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #63A4FE;"
              @click="refreshStateOfBusiness">刷新</span>
          </div>
          <div class="timeSelect">
            <div class="leftSelect">
              <span style="padding-right:8px;color: #333333;">起止时间</span>
               <DatePicker type="daterange" placement="bottom-end" placeholder="Select date" style="width: 250px" :transfer="transfer" :clearable="clearable" :value="startDate" @on-change="rangeDate"></DatePicker>
            </div>
             <div class="rightSelect">
                <div :class="{'active':index==manageIsActive,'itemDay':true}" v-for="(item,index) in dayOptions2" :key="index" @click="getManageActive(index)">{{item}}</div>
             </div>
          </div>
          <div class="shopSelect">
            <!-- <Select v-model="shopArr" placeholder='请点击箭头选择店铺，或者输入关键字识别搜索' label-in-value filterable multiple multipleType chooseAll @on-change="changeShopArr" >
                <Option v-for="item in shopList" :value="item.label" :key="item.value">{{ item.value }}</Option>
            </Select>-->

            <DropDownCom ref='DropDownCom' style="width:700px" selectWidth='700' :choosedExpressList="choosedExpressList" :placeholder="placeholder" :expressList="shopList" @changeShopArr="changeShopArr" @searchList="getEnterExpressList" @clearAllData="clearAllFilter"></DropDownCom>
            <div class="selectPart" v-if="selectShopArr.length">
              <div class="selectGroup">
                <span style="margin-right:8px;font-size: 11px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #CDCDCD;line-height: 16px;">检索项</span>
                <div class="groupItem" v-for="(item,index) in selectShopArr" :key="index" >
                  <span>{{item.label}}</span>
                  <Icon type="ios-close" @click="deleteShop(item,index)" />
                </div>
              </div>
              <div class="selectBtn">
                <div style="cursor:pointer; padding:8px;" @click="clearAll">
                  清空
                </div>
                <div style="padding:8px 0;height:40px;">|</div>
                <div @click="showAll" style="padding:8px;cursor:pointer;">
                  {{showAllText}}
                  <Icon :type="isShow?'iconios-arrow-down':'iconios-arrow-up'" />
                </div>
              </div>
            </div>
          </div>
          <div class="mansgeMsg">
            <Row>
               <Col span="4" >
                <div id="parentcharts_dd" class="part" @click="changeEcharts(0)">
                    <div class="title">订单数<Tooltip
                      content="统计订单个数（平台单号维度）"
                      placement="right"
                    >
                      <Icon style="font-size:20px;margin-left: 2px;margin-top: -2px;color:#858b9a;" type="ios-alert-outline" />
                    </Tooltip></div>
                    <div class="now">{{manageDataNow.ORDERNUMBER}}</div>
                    <div class="before" v-show="manageIsActive!=-1">{{beforeIsActive}}{{manageDataBefore.ORDERNUMBER}}</div>
                </div>
               </Col>
               <Col span="4">
                <div id="parentcharts_fh" class="part" @click="changeEcharts(1)">
                    <div class="title">已发货订单数<Tooltip
                      content="统计已发货订单个数（平台单号维度）"
                      placement="bottom"
                    >
                      <Icon style="font-size:20px;margin-left: 2px;margin-top: -2px;color:#858b9a;" type="ios-alert-outline" />
                    </Tooltip></div>
                    <div class="now">{{manageDataNow.OUTORDER}}</div>
                    <div class="before" v-show="manageIsActive!=-1">{{beforeIsActive}}{{manageDataBefore.OUTORDER}}</div>
                </div>
               </Col>
               <Col span="4">
                <div id="parentcharts_td" class="part" @click="changeEcharts(2)">
                    <div class="title">已退订单数<Tooltip
                      content="统计订单退货个数"
                      placement="bottom"
                    >
                      <Icon style="font-size:20px;margin-left: 2px;margin-top: -2px;color:#858b9a;" type="ios-alert-outline" />
                    </Tooltip></div>
                    <div class="now">{{manageDataNow.REFUNDNUMBER}}</div>
                    <div class="before" v-show="manageIsActive!=-1">{{beforeIsActive}}{{manageDataBefore.REFUNDNUMBER}}</div>
                </div>
               </Col>
               <Col span="4" >
                <div id="parentcharts_xs" class="part echartvisit" @click="changeEcharts(3)">
                    <div class="title">销售额</div>
                    <div class="now">￥{{manageDataNow.ORDERPRICE}}</div>
                    <div class="before" v-show="manageIsActive!=-1">{{beforeIsActive}}￥{{manageDataBefore.ORDERPRICE}}</div>
                </div>
               </Col>
               <Col span="4">
                <div id="parentcharts_tk" class="part" @click="changeEcharts(4)">
                    <div class="title">售后退款总额</div>
                    <div class="now">￥{{manageDataNow.REFUNDPRICEE}}</div>
                    <div class="before" v-show="manageIsActive!=-1">{{beforeIsActive}}￥{{manageDataBefore.REFUNDPRICEE}}</div>
                </div>
               </Col>
            </Row>
          </div>
          <div style="display:flex;margin-bottom:16px">
            <div id="msgChart" ref="myChart" style="height: 310px; min-width: 380px;width:50%"></div>
            <div id="mapChart" style=" display:flex;margin-left:20px;border-left: 1px dashed #9A9A9A;position:relative">
              <div class="ibox-content" style="position: absolute;z-index: 10;left:15px">
                <div>
                    <h3 style="margin-bottom: 10px;height: 20px;font-size: 14px;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #333333;line-height: 20px;" id="SalesRanking">销售额排行</h3>
                    <div id="salemoney_stance">
                    </div>
                    <h5 style="height: 17px;font-size: 12px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #9A9A9A;line-height: 17px;" id="SalesPercentage">占全国销量百分比</h5>
                    <h2 style="font-weight: 600;" id="topproportion"></h2>
                </div>
              </div>
              <div class="bojun-content-box" id="bojunmaprank">
                  <span v-for="item in province.rows" :key="item.id" :class="`bojun-dot ${item.spell}`" :id="`bojun-dot-${item.spell}`" :data-id="item.spell">{{item.name}}</span>
                  <div v-for="(row,index) in provincePrice" :key="index"  class="branch-bojun-data" :id="`regionid_${row.spell}`" >
                      <div class="branch-bojun-data-title">
                          <p style="margin: 0px;" :id="`regionid_p_${row.spell}`">{{row.name}}</p>
                      </div>
                      <div class="branch-bojun-data-info">
                          <div class="data-branch">
                              <p :id="`salemoney_${row.spell}`" style="margin: 0px;font-size:12px;">￥{{row.price}},占比：{{row.percent}}</p>
                          </div>
                      </div>
                  </div>

              </div>
            </div>
          </div>

        </div>
      </div>
    </div>
    </div>

  </div>
  <div v-else style='width: 100%;height: 100%;'>
    <div class='homepageURL' style="width:100%';height:100%;overflow: hidden;	display: flex;align-items: center;">
      <img style='width:100%;' :src="homepageURL" alt="">
    </div>
  </div>
</template>

<script>
  // import R3 from '../../static/r3/r3.publish/r3.min';
  const R3 = window.R3;
  import Draggable from 'vuedraggable'
  import cloneDeep from 'lodash/cloneDeep'
  import echarts from '../../iframe/Scripts/WTable/inspiniaen/echarts.min.js';
  import DropDownCom from '@yunque/component/customizedContent/DropDownCom'
  // import homeTopLink from '@yunque/component/customizedContent/homeTopLink.vue';
  import CommonModal from '@yunque/component/modal/commonModal/index.vue'
  import ServePanel from './welcomePage/servePanel.vue';
  // import pkg from '../../package.json'
  const { network, urlSearchParams } = R3;

  export default {
    name: 'WelcomePage',
    components:{DropDownCom, Draggable, CommonModal, ServePanel},
    data() {
      return {
        wtableindexChaxun: [], // 订单信息需要查询的数据
        // version: pkg.version,
        ISINDEXSHOW: '',
        homepageURL: require('@yunque/assets/image/emptyWelcome.png'),
        AD_CLIENT_NAME:'',
        wrapperWidth:'',
        // 店铺授权过期提醒
        expiresshop: [],
        // {
        //       "id": 6,
        //       "shopname": "【7天内过期】7天",
        //       "expirestime": "2022-08-26 13:40:53",
        //       "important": true,
        //       "expirestype": 2
        //   },
        //产品动态
        dynamic:[
        {
            notice:'',
            title:'🔥自动化物流拦截，点击查看🔗',
            important:false,
            time:'2022-11-17',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ba80uc3rk2yr8vyd?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.44&1.45-20241224版本热修公告',
            important:false,
            time:'2024-12-24',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/hg1oobm21olqbrok?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.44-20241210版本热修公告',
            important:false,
            time:'2024-12-10',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/kioziam2viglc1q6?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.43版本发布说明',
            important:false,
            time:'2024-09-24',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/lce8xqlq2tr37wog?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.44-20241126版本热修公告',
            important:false,
            time:'2024-11-26',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/mr3btglbkl0fzf9k?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.43&1.44-20241112版本热修公告',
            important:false,
            time:'2024-11-12',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/nahdlwapkndgfynq?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.43-20241105版本热修公告',
            important:false,
            time:'2024-11-05',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/hwwo0egg39viigpg?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.43-20241029版本热修公告',
            important:false,
            time:'2024-10-29',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/pdp6uyosy0dqb2dk?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.43-20241022版本热修公告',
            important:false,
            time:'2024-10-22',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/hmasm5uv6if27vvg?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.43-20241015版本热修公告',
            important:false,
            time:'2024-10-15',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bugn9h624i95ig80?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.42版本发布说明',
            important:false,
            time:'2024-08-27',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/sgryw3ydg76utf6v?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.42&1.43-20241008版本热修公告',
            important:false,
            time:'2024-10-08',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/kly2egw6qmdur4l8?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.42&1.43-20240924版本热修公告',
            important:false,
            time:'2024-09-24',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fhsbrv6rx594rzfz?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.42-20240918版本热修公告',
            important:false,
            time:'2024-09-18',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/xf27nk3eskukninc?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.42-20240910版本热修公告',
            important:false,
            time:'2024-09-10',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ll5r3l2m93shgtru?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.41版本发布说明',
            important:false,
            time:'2024-07-23',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ymq4crzsp4piyac4?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.41&1.42-20240903版本热修公告',
            important:false,
            time:'2024-09-03',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/vzog7iqoi1bg91wz?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.41&1.42-20240827版本热修公告',
            important:false,
            time:'2024-08-27',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/sp5z221x7mwyab9i?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.41-20240820版本热修公告',
            important:false,
            time:'2024-08-20',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bfn55yod1eu19fk5?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.41-20240813版本热修公告',
            important:false,
            time:'2024-08-13',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ems2k5sggbmlnzp0?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.41-20240806版本热修公告',
            important:false,
            time:'2024-08-06',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fb6fzpdfrxgli6t9?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.40版本发布说明',
            important:false,
            time:'2024-06-25',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/xqxkcsqi94hv9gfl?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.40&1.41-20240730版本热修公告',
            important:false,
            time:'2024-07-30',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/zqwh4hhllhs5h8o9?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.40&1.41-20240723版本热修公告',
            important:false,
            time:'2024-07-23',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bb487wzgq7x8xzlq?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.40-20240716版本热修公告',
            important:false,
            time:'2024-07-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/hlofm3xf846fudi5?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.40-20240709版本热修公告',
            important:false,
            time:'2024-07-09',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/zgcvu1iwr2rwyoew?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.39版本发布说明',
            important:false,
            time:'2024-05-07',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/sgzczuvnbbgtm2bp?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.39&1.40-20240702版本热修公告',
            important:false,
            time:'2024-07-02',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/mvkr5bv3h6d9a7dg?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.39&1.40-20240625版本热修公告',
            important:false,
            time:'2024-06-25',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/oztox7i97expyhxc?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.39-20240618版本热修公告',
            important:false,
            time:'2024-06-18',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/kim8es9grs451ngx?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.39-20240612版本热修公告',
            important:false,
            time:'2024-06-12',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/xlrtee8wc8mgfllw?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.39-20240604版本热修公告',
            important:false,
            time:'2024-06-04',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/mdsdnbpb4ik8dxh1?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.39-20240528版本热修公告',
            important:false,
            time:'2024-05-28',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/tusdgno92b83xdkt?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.38版本发布说明',
            important:false,
            time:'2024-04-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/kmm7u8gey26yau2a?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.38&1.39-20240514版本热修公告',
            important:false,
            time:'2024-05-14',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/xk7rqskhwgtre4wn?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.38&1.39-20240507版本热修公告',
            important:false,
            time:'2024-05-07',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rcyk4bmo37erl9he?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.38-20240423版本热修公告',
            important:false,
            time:'2024-04-23',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ugx5q5pakz9k86gf?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.37版本发布说明',
            important:false,
            time:'2024-03-26',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rn5bpe0fsy8twoxv?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.37&1.38-20240416版本热修公告',
            important:false,
            time:'2024-04-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/uukt4gnszo56epog?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.37-20240409版本热修公告',
            important:false,
            time:'2024-04-09',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fw92mn725wga7i52?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.37-20240407版本热修公告',
            important:false,
            time:'2024-04-07',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rzygiqfnsykxcbk8?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.36版本发布说明',
            important:false,
            time:'2024-03-05',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ud0e9cn78u0ganmg?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.36&1.37-20240326版本热修公告',
            important:false,
            time:'2024-03-26',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/mosww8x8bppqmpq1?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.36-20240319版本热修公告',
            important:false,
            time:'2024-03-19',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/xckcbdfb7anhnp2w?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.36-20240312版本热修公告',
            important:false,
            time:'2024-03-12',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/yvw42olrc7z7kgxl?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.35版本发布说明',
            important:false,
            time:'2024-01-30',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/qhqucyymh3hxap8e?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.35&1.36-20240305版本热修公告',
            important:false,
            time:'2024-02-27',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rzhyd2xyeyb6fhnv?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.35-20240227版本热修公告',
            important:false,
            time:'2024-02-27',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/grhc1gho6vg96wd3?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.34版本发布说明',
            important:false,
            time:'2024-01-09',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/nycry5porrl5ki06?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.34&1.35-20240220版本热修公告',
            important:false,
            time:'2024-02-20',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/hypbx0argdysnxhg?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.34&1.35-20240130版本热修公告',
            important:false,
            time:'2024-01-30',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fyc9zyavugx4xg7q?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.34-20240123版本热修公告',
            important:false,
            time:'2024-01-23',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/kocggdpon3bg2rov?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.34-20240116版本热修公告',
            important:false,
            time:'2024-01-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bt3qy7tbw0nx3k7o?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.33版本发布说明',
            important:false,
            time:'2023-12-19',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/hlqge57bsch2pwoz?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.33&1.34-20240109版本热修公告',
            important:false,
            time:'2024-01-09',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bgsmggwv6vzmi34m?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.33-20240102版本热修公告',
            important:false,
            time:'2024-01-02',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/zyrv8lvrpgaman50?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.33-20231226版本热修公告',
            important:false,
            time:'2023-12-26',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/coo0gcfsdk1v3a5m?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.32版本发布说明',
            important:false,
            time:'2023-11-21',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bnooni24b3lw8pnw?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.32&1.33-20231219版本热修公告',
            important:false,
            time:'2023-12-19',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/piu3y8r8ab9c9mwb?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.32-20231212版本热修公告',
            important:false,
            time:'2023-12-12',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ehwuzikvgcmduwz6?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.32-20231205版本热修公告',
            important:false,
            time:'2023-12-05',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/lbysdm6qwlqugnip?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.32-20231128版本热修公告',
            important:false,
            time:'2023-11-28',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/mgy95zi6wpblrmsw?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.31版本发布说明',
            important:false,
            time:'2023-10-17',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/phyup285qxr5wae3?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.31-20231121版本热修公告',
            important:false,
            time:'2023-11-21',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/akw8ch6agzny2v0t?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.31-20231114版本热修公告',
            important:false,
            time:'2023-11-14',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/adusfo510syo7aey?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.31-20231107版本热修公告',
            important:false,
            time:'2023-11-07',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/nxqtwgg4gtvn7hgs?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.31-20231022版本热修公告',
            important:false,
            time:'2023-10-22',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/emsqh1y1hdpbsk5e#xusUJ?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.31-20231017版本热修公告',
            important:false,
            time:'2023-10-17',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/sgzlb53nxnvpg7il?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.30-20231010版本热修公告',
            important:false,
            time:'2023-10-10',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ethvnnd05a9348uz?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.30-20230926版本热修公告',
            important:false,
            time:'2023-09-26',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rko6zdfob0cifalb?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.30版本发布说明',
            important:false,
            time:'2023-09-19',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fwes5xe8bdsugva5?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.29-20230919版本热修公告',
            important:false,
            time:'2023-09-19',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/grfz70fydvpf1kdh?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.29-20230912版本热修公告',
            important:false,
            time:'2023-09-12',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/cet81bvszci6osia?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.29-20230905版本热修公告',
            important:false,
            time:'2023-09-05',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/dgswk4vpv4p4st8n?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.29-20230829版本热修公告',
            important:false,
            time:'2023-08-29',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rz4upvy60v6oygzc?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.29版本发布说明',
            important:false,
            time:'2023-08-29',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/gyheloxa56e922ib?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.28-20230822版本热修公告',
            important:false,
            time:'2023-08-22',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/sddgoxgaydr7xcfu?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.28-20230815版本热修公告',
            important:false,
            time:'2023-08-15',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bbu4vwl9pec79sft?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.28-20230808版本热修公告',
            important:false,
            time:'2023-08-08',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/si01rho940c9p8x6?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.28版本发布说明',
            important:false,
            time:'2023-08-08',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ty6tdnrab9g0irkp?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.27-20230801版本热修公告',
            important:false,
            time:'2023-08-01',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/igl34gxhmyg3ordq?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.27-20230725版本热修公告',
            important:false,
            time:'2023-07-25',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/sg1kexronf1ygrcz?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.27-20230725版本热修公告',
            important:false,
            time:'2023-07-25',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/sg1kexronf1ygrcz?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.27-20230718版本热修公告',
            important:false,
            time:'2023-07-18',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/cdez17671l2a0ppv?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.27-20230718版本热修公告',
            important:false,
            time:'2023-07-18',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/cdez17671l2a0ppv?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.27版本发布说明',
            important:false,
            time:'2023-07-18',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fwismh8imbc03hdi?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.26-20230711版本热修公告',
            important:false,
            time:'2023-07-11',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ra5b49wbmr9ne1ch?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.26版本发布说明',
            important:false,
            time:'2023-07-11',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/uob5lexkgl9lpgzw?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.25-20230704版本热修公告',
            important:false,
            time:'2023-07-04',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/hocng8rweapi8sy2?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.25-20230627版本热修公告',
            important:false,
            time:'2023-06-27',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/blmns2svlkgawgr9?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.25版本发布说明',
            important:false,
            time:'2023-06-27',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/qdwty7elklib0qwk?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.24-20230620版本热修公告',
            important:false,
            time:'2023-06-20',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/qlvu5wtql2tgt3tu?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.24-20230613版本热修公告',
            important:false,
            time:'2023-06-13',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/xxk0spvstu1zri6r?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.24-20230606版本热修公告',
            important:false,
            time:'2023-06-06',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/gavpimpm29v7ypg3?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.24-20230530版本热修公告',
            important:false,
            time:'2023-05-30',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/frkebkxvyqu44u9v?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.24-20230523版本热修公告',
            important:false,
            time:'2023-05-23',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ckbdp57wxaniwtun?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.24版本发布说明',
            important:false,
            time:'2023-05-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ene410mhmux2m6fk?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.23-20230516版本热修公告',
            important:false,
            time:'2023-05-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/dg9qtmxgrgv42bhg?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.23-20230509版本热修公告',
            important:false,
            time:'2023-05-09',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/dg9qtmxgrgv42bhg?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.23-20230426版本热修公告',
            important:false,
            time:'2023-04-26',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/lahmig4kulh6m9w9?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.23-20230419版本热修公告',
            important:false,
            time:'2023-04-19',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/tesuo1r1po0byc7u?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.23版本发布说明',
            important:false,
            time:'2023-04-19',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/gtd9l2yc5td1ibho?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.22-20230413版本热修公告',
            important:false,
            time:'2023-04-13',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/dads89kkb9hxzos9?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.22-20230406版本热修公告',
            important:false,
            time:'2023-04-06',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/kuxfuivdcgczg000?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.22-20230330版本热修公告',
            important:false,
            time:'2023-03-30',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/xwz5hg10zxfegnxp?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.22-20230323版本热修公告',
            important:false,
            time:'2023-03-23',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rvdl218geoyawv1e?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.21版本发布说明',
            important:false,
            time:'2023-02-28',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/mf1zsqyd9an93gc0?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.21-20230316版本热修公告',
            important:false,
            time:'2023-03-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/ehysnrh0tzq96b8z?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.21-20230309版本热修公告',
            important:false,
            time:'2023-03-09',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/rbd8l586ho5goor3?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.21-20230302版本热修公告',
            important:false,
            time:'2023-03-02',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/lvm28a763adu5y0d?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.20版本发布说明',
            important:false,
            time:'2023-01-31',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/aqg1nctvt2baz5rv?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.20-20230223版本热修公告',
            important:false,
            time:'2023-02-23',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fkiegflys2ngqicd?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.20-20230216版本热修公告',
            important:false,
            time:'2023-02-16',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/lfalks0vsbll53r0?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.20-20230209版本热修公告',
            important:false,
            time:'2023-02-09',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/gqsz9mrlp113nlyx?singleDoc#'
          },
          {
            notice:'版本发布',
            title:'云雀1.20-20230202版本热修公告',
            important:false,
            time:'2023-02-02',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/tpfownvscg1s7532?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.19版本发布说明',
            important:false,
            time:'2023-01-03',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/yr3hmfwphxb04hf9?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.19-20230112版本热修公告',
            important:false,
            time:'2023-01-12',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/itozphcaq1app99d?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.19-20230105版本热修公告',
            important:false,
            time:'2023-01-05',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/oilwgslgg2c23qtn?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.18版本发布说明',
            important:false,
            time:'2022-12-06',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/mzehzqnm8ogr6c8e?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.18&1.19-20221229版本热修公告',
            important:false,
            time:'2022-12-29',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/akmafr6d6gksu0r1?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.18-20221222版本热修公告',
            important:false,
            time:'2022-12-22',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/uhnahe0c08y51izd?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.18-20221215版本热修公告',
            important:false,
            time:'2022-12-15',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/bqhmqubzu6heehg5?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀1.17&1.18-20221206版本热修公告',
            important:false,
            time:'2022-12-06',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/qyks2kkictv0sx96?singleDoc# '
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.17版本发布说明',
            important:false,
            time:'2022-11-22',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/fcqor1axpharauwp'
          },
          {
            notice:'版本发布',
            title:'云雀1.17&1.18-20221201版本热修公告',
            important:false,
            time:'2022-12-01',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/viz2os'
          },
          {
            notice:'版本发布',
            title:'云雀1.17&1.18-20221124版本热修公告',
            important:false,
            time:'2022-11-24',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/gucgya4yvxt1xqgi?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.16版本发布说明',
            important:false,
            time:'2022-10-13',
            link:'https://burgeonwing.yuque.com/docs/share/8b2d5a7e-525e-485a-abac-5819a03649b1?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.16&1.17-2022.11.17版本热修公告',
            important:false,
            time:'2022-11-17',
            link:'https://burgeon.yuque.com/cgmq7t/cgv53l/gdr10o?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.15版本发布说明',
            important:false,
            time:'2022-09-13',
            link:'https://burgeonwing.yuque.com/docs/share/fd418414-b349-4371-8a22-c6fa4c159de1?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.15&1.16-20221027版本热修公告',
            important:false,
            time:'2022-10-27',
            link:'https://burgeonwing.yuque.com/docs/share/60630c5d-d0ca-4e33-8038-029a006b3802?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.15&1.16-20221020版本热修公告',
            important:false,
            time:'2022-10-20',
            link:'https://burgeonwing.yuque.com/docs/share/3cd3d37d-e2fb-4207-baa2-d6275b96b5cd?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.15&1.16-20221013版本热修公告',
            important:false,
            time:'2022-10-13',
            link:'https://burgeonwing.yuque.com/docs/share/653efa32-ed73-496b-aa23-47ea0acc4e99?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.15-20220929版本热修公告',
            important:false,
            time:'2022-09-29',
            link:'https://burgeonwing.yuque.com/docs/share/67f16846-b460-4d4b-82df-e53c8a682a29?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.14版本发布说明',
            important:false,
            time:'2022-08-22',
            link:'https://burgeonwing.yuque.com/docs/share/2c54d7fc-7453-4d65-9432-73004c868c59?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.14&1.15-20220922版本热修公告',
            important:false,
            time:'2022-09-22',
            link:'https://burgeonwing.yuque.com/docs/share/2cf10297-f2e2-4afd-a6e8-c358894e0424?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.14&1.15-20220915版本热修公告',
            important:false,
            time:'2022-09-15',
            link:'https://burgeonwing.yuque.com/docs/share/d1712791-cc5e-4efb-804f-01fca2de32a9?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.14-20220908版本热修公告',
            important:false,
            time:'2022-09-08',
            link:'https://burgeonwing.yuque.com/docs/share/3335d86b-e126-457e-b688-e3e6f1e7c00f?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.14-20220901版本热修公告',
            important:false,
            time:'2022-09-01',
            link:'https://burgeonwing.yuque.com/docs/share/767e84bf-b4e6-4d92-a039-7a2e59034d69?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.13版本发布说明',
            important:false,
            time:'2022-08-08',
            link:'https://burgeonwing.yuque.com/docs/share/a1df892a-25a4-4a2a-b43c-faeb4dd67a89?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.13&1.14-20220825版本热修公告',
            important:false,
            time:'2022-08-25',
            link:'https://burgeonwing.yuque.com/docs/share/1d37c9ab-0e5d-41cb-9ffe-7cf18c537563?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.13-20220818版本热修公告',
            important:false,
            time:'2022-08-18',
            link:'https://burgeonwing.yuque.com/docs/share/27a1a8f6-40df-41a3-b3a6-14e4124c6bc4?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.13-20220811版本热修公告',
            important:false,
            time:'2022-08-11',
            link:'https://burgeonwing.yuque.com/docs/share/d5dd3a42-1c6f-4b9d-9c2e-183a020f96e0?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.12版本发布说明',
            important:false,
            time:'2022-07-05',
            link:'https://burgeonwing.yuque.com/docs/share/b3e0816a-0ec4-434b-9f34-111c5a180a46?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.12&1.13-20220804版本热修公告',
            important:false,
            time:'2022-08-04',
            link:'https://burgeonwing.yuque.com/docs/share/6d653dde-e811-4d5e-85fa-77d8ddc62c1f?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.11版本发布说明',
            important:false,
            time:'2022-06-21',
            link:'https://burgeonwing.yuque.com/docs/share/f30ad308-f7b1-4974-b6e3-873c45286b72?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.11&1.12-20220714版本热修公告',
            important:false,
            time:'2022-07-14',
            link:'https://burgeonwing.yuque.com/docs/share/18284de2-29c2-4733-99e5-97fb6cee9062?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.11&1.12-20220707版本热修公告',
            important:false,
            time:'2022-07-07',
            link:'https://burgeonwing.yuque.com/docs/share/897aa7f0-ad99-48f7-8271-8e28ff3d1877?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.10版本发布说明',
            important:false,
            time:'2022-05-12',
            link:'https://burgeonwing.yuque.com/docs/share/c8aee540-fe9a-4374-ab0d-62724c98ebf3?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.10&1.11-20220609版本热修公告',
            important:false,
            time:'2022-06-09',
            link:'https://burgeonwing.yuque.com/docs/share/0de90b39-4402-46f2-a791-13f5aaee43f3?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.10-20220528版本热修公告',
            important:false,
            time:'2022-05-28',
            link:'https://burgeonwing.yuque.com/docs/share/6fa577aa-ac08-497a-9ceb-8f8563a5fb0d?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.09版本发布说明',
            important:false,
            time:'2022-04-18',
            link:'https://burgeonwing.yuque.com/docs/share/1fbbcadc-8e33-4105-a0b8-524f961bf1e9?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.09&1.10-20220519版本热修公告',
            important:false,
            time:'2022-05-19',
            link:'https://burgeonwing.yuque.com/docs/share/c268f7be-fc60-4009-b543-1f6eec09188a?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.09&1.10-20220512版本热修公告',
            important:false,
            time:'2022-05-12',
            link:'https://burgeonwing.yuque.com/docs/share/a9eb368b-32a7-4b60-8fa8-07b0c67c5dc4?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.09-20220428版本热修公告',
            important:false,
            time:'2022-04-28',
            link:'https://burgeonwing.yuque.com/docs/share/2462e27a-eda7-4225-b029-afbbd2081395?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.08版本发布说明',
            important:false,
            time:'2022-03-10',
            link:'https://burgeonwing.yuque.com/docs/share/5c12060a-54b2-404c-a32e-55080865a078?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08&1.09-20220421版本热修公告',
            important:false,
            time:'2022-04-21',
            link:'https://burgeonwing.yuque.com/docs/share/a14f8983-86f0-40a4-bb40-ffa7bd13f804?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220418版本热修公告',
            important:false,
            time:'2022-04-18',
            link:'https://burgeonwing.yuque.com/docs/share/d9f983ef-477e-4c57-af8f-354cd3650f3f?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220415版本热修公告',
            important:false,
            time:'2022-04-15',
            link:'https://burgeonwing.yuque.com/docs/share/f338e5f3-6190-4494-b66c-b385a87ea3e2?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220414版本热修公告',
            important:false,
            time:'2022-04-14',
            link:'https://burgeonwing.yuque.com/docs/share/d549988c-2466-4cec-bd5d-e4a3d9ec0e09?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220413版本热修公告',
            important:false,
            time:'2022-04-13',
            link:'https://burgeonwing.yuque.com/docs/share/a02f4e04-1433-4b50-97c6-f0dcd359f13d?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220408版本热修公告',
            important:false,
            time:'2022-04-08',
            link:'https://burgeonwing.yuque.com/docs/share/e24e19f9-383c-4725-9d2f-3c5356371694?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220407版本热修公告',
            important:false,
            time:'2022-04-07',
            link:'https://burgeonwing.yuque.com/docs/share/b6adfab0-d4ee-4875-af08-b583247a15f3?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220401版本热修公告',
            important:false,
            time:'2022-04-01',
            link:'https://burgeonwing.yuque.com/docs/share/8e6364ae-b7be-40f1-b5f7-8fa0deb6697f?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220331版本热修公告',
            important:false,
            time:'2022-03-31',
            link:'https://burgeonwing.yuque.com/docs/share/a45921e7-3194-4b73-8592-90de7de50b9f?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220329版本热修公告',
            important:false,
            time:'2022-03-29',
            link:'https://burgeonwing.yuque.com/docs/share/2fef5ff4-5aaf-4bd1-ba8b-b28c04256871?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.08-20220324版本热修公告',
            important:false,
            time:'2022-03-24',
            link:'https://burgeonwing.yuque.com/docs/share/b5a6c0b3-d754-49d8-865d-959fdbf61249?#'
          },
          {
            notice:'版本发布',
            title:'云雀Lark1.0.7版本发布公告',
            important:false,
            time:'2022-03-01',
            link:'https://burgeonwing.yuque.com/docs/share/78b88bae-586a-41b6-bc23-082deca561b3?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.07&1.08-20220317版本热修公告',
            important:false,
            time:'2022-03-17',
            link:'https://burgeonwing.yuque.com/docs/share/cf0de898-9c4c-4761-a3cb-a1dd0bf5722d?# '
          },
          {
            notice:'版本发布',
            title:'云雀1.07&1.08-20220315版本热修公告',
            important:false,
            time:'2022-03-15',
            link:'https://burgeonwing.yuque.com/docs/share/70674591-3e88-4ef2-802d-e60301a24979?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.07-20220303版本热修公告',
            important:false,
            time:'2022-03-03',
            link:'https://burgeonwing.yuque.com/docs/share/01f0a035-f63a-499e-80f3-a10f5c4ff6d7?#'
          },
          {
            notice:'版本发布',
            title:'云雀1.06&1.07-20220227版本热修公告',
            important:false,
            time:'2022-02-27',
            link:'https://burgeonwing.yuque.com/docs/share/b7c29185-129b-423d-90de-94586db7232b?#'
          },
          {
            notice:'版本发布',
            title:'1.0.7&1.0.6-20220224热修版本发布公告',
            important:false,
            time:'2022-02-24',
            link:'https://burgeonwing.yuque.com/docs/share/9ab8f5ad-8410-4724-8493-1bbab8e65a55?#'
          },{
            notice:'版本发布',
            title:'1.0.6版本发布公告',
            important:false,
            time:'2022-02-17',
            link:'https://burgeonwing.yuque.com/docs/share/6d83882b-cb59-4317-b0c9-c8737c1aca4f?#'
          },{
            notice:'版本发布',
            title:'1.0.5版本发布公告',
            important:false,
            time:'2021-12-15',
            link:'https://burgeonwing.yuque.com/docs/share/96bace4b-c072-4d73-9990-96976581a693?#'
          },{
            notice:'版本发布',
            title:'1.0.4版本发布公告',
            important:false,
            time:'2021-11-19',
            link:'https://burgeonwing.yuque.com/docs/share/56d2d824-81d5-4cce-b851-5d7745b343ad?#%20'
          },
          // {
          //   notice:'商家通知',
          //   title:'亲，开抖音店么，特殊通道！',
          //   important:false,
          //   time:'2021-09-29',
          //   link:'https://aweme.snssdk.com/magic/eco/runtime/release/61516d2756300a03d0ba8c02?appType=douyin&title_color=ffffff&nav_bar_color=000000&status_bar_color=00000'
          // },
          {
            notice:'商家通知',
            title:'淘宝历史订单加密公告',
            important:true,
            time:'2021-09-27',
            link:'https://burgeonwing.yuque.com/docs/share/1a777e17-ede2-48b0-aa0f-214a7af33b7c?#'
          },
          {
            notice:'版本发布',
            title:'1.03.1版本发布公告',
            important:false,
            time:'2021-09-13',
            link:'https://burgeonwing.yuque.com/docs/share/c5b2feba-17e1-4276-9193-aa674db7dad5?#'
          },
          {
            notice:'版本发布',
            title:'1.03版本发布公告',
            important:false,
            time:'2021-08-26',
            link:'https://burgeonwing.yuque.com/docs/share/e5f411e4-40e2-423c-b25d-eb782433d535?#'
          },
          {
            notice:'版本发布',
            title:'1.02.7版本发布公告',
            important:false,
            time:'2021-08-12',
            link:'https://burgeonwing.yuque.com/docs/share/0b627d80-d248-466f-be7d-0aaff62bf558?#'
          },
          {
            notice:'商家通知',
            title:'伯俊云雀Lark-平台数据加密公告',
            important:true,
            time:'2021-03-29',
            link:'https://burgeonwing.yuque.com/docs/share/38edae74-1802-409c-b0a3-88baf5d8ef5d?#'
          },
          // {
          //   title:'伯俊云雀Lark-平台数据加密公告',
          //   important:false,
          //   time:'2021-03-29',
          //   link:'https://burgeonwing.yuque.com/docs/share/38edae74-1802-409c-b0a3-88baf5d8ef5d?#'
          // },
        ],
        dynamicCurrentPage:1, //当前页码
        dynamicPageSize:10,
        dynamicTotal:1,//数据总数
        // 图标数据
        startTime:'',
        endTime:'',
        initdata :'',//存储折线图数据
        //省份数组
        province:{
            rows: [
                { id: 110000, spell: 'beijing', name: '北京' },
                { id: 120000, spell: 'tianjin', name: '天津' },
                { id: 130000, spell: 'hebei', name: '河北' },
                { id: 140000, spell: 'shanxi', name: '山西' },
                { id: 210000, spell: 'liaoning', name: '辽宁' },
                { id: 220000, spell: 'jilin', name: '吉林' },
                { id: 230000, spell: 'heilongjiang', name: '黑龙江' },
                { id: 310000, spell: 'shanghai', name: '上海' },
                { id: 320000, spell: 'jiangsu', name: '江苏' },
                { id: 330000, spell: 'zhejiang', name: '浙江' },
                { id: 340000, spell: 'anhui', name: '安徽' },
                { id: 350000, spell: 'fujian', name: '福建' },
                { id: 360000, spell: 'jiangxi', name: '江西' },
                { id: 370000, spell: 'shandong', name: '山东' },
                { id: 410000, spell: 'henan', name: '河南' },
                { id: 420000, spell: 'hubei', name: '湖北' },
                { id: 430000, spell: 'hunan', name: '湖南' },
                { id: 440000, spell: 'guangdong', name: '广东' },
                { id: 450000, spell: 'guangxi', name: '广西' },
                { id: 500000, spell: 'chongqing', name: '重庆' },
                { id: 510000, spell: 'sichuan', name: '四川' },
                { id: 520000, spell: 'guizhou', name: '贵州' },
                { id: 530000, spell: 'yunnan', name: '云南' },
                { id: 610000, spell: 'shanxi1', name: '陕西' },
                { id: 150000, spell: 'neimenggu', name: '内蒙古' },
                { id: 460000, spell: 'hainan', name: '海南' },
                { id: 540000, spell: 'xicang', name: '西藏' },
                { id: 620000, spell: 'gansu', name: '甘肃' },
                { id: 630000, spell: 'qinghai', name: '青海' },
                { id: 640000, spell: 'ningxia', name: '宁夏' },
                { id: 650000, spell: 'xinjiang', name: '新疆' },
                { id: 710000, spell: 'taiwan', name: '台湾' },
                { id: 810000, spell: 'xiangguang', name: '香港' },
                { id: 820000, spell: 'aomen', name: '澳门' }
            ]
        },
        provincePrice:[], //省份销量
        //小时数组
        hourtime : ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],
        // 经营状况
        clearable:false,//时间选择器禁用清空
        transfer:true,
        startDate:[],
        dayOptions2:['今日','本周','本月'],
        manageIsActive:0,//选中索引
        beforeIsActive:'昨日',//选中的上一次时间
        ActiveSumVirtual:{},// 经营状况接口入参
        selectShopArr:[],//搜索列表选中数据
        placeholder:'请点击下拉箭头选择店铺，或者输入关键字识别搜索',//搜索列表默认提示信息
        isShow:false,//是否显示所有检索项
        showAllText:'展开',
        shopArr:[],//搜索列表选中数据id数组
        shopList:[],//搜索店铺列表所有数据
        shopIds:'',//多选店铺id
        shopName:'',//多选店铺名称
        manageDataNow:{}, //当前数据
        manageDataBefore:{},//之前数据
        // 畅销商品
        SellcurrentPage:1, //当前页码
        SellPageSize:7,
        SellTotal:42,//数据总数
        SellIsActive:0, //选中索引
        SellIsActiveNum:3,//选中数据
        dayOptions:[
          {num:3,text:'近3天'},
          {num:7,text:'近7天'},
          {num:30,text:'近30天'}
          ],
        // 营销活动
        activitycurrentPage:1, //当前页码
        activityPageSize:7,
        activityTotal:42,//数据总数
        activityIsActive:0,
        activityFixedcolumns:{},
        startOptions:['进行中','未开始'],
        LocaleTime:'',//当前时间
        LocaleTimeOne:'',//订单信息更新时间
        localTimeState: '', // 经营状况刷新时间
        url: '',
        isPoptip:false,//是否有二级列表
        searchKeyVal: '', // 搜索信息
        searchcolumn: 'SOURCECODE', // 默认平台号
        placeholderText:'请输入平台号',
        agentOrder: [], // 代办订单页面渲染
        warnOrder:[],//预警订单页面渲染
        // 待办订单:父级枚举
        wtableindex: [
          {
            indexid: 'wtableindex16', text: '预售发货提醒', level: 1, url: '', orderbiz: 'PRESALESENDREMIND', hasitem: 'N', remind: 'N', popover: ''
          }, // 预售发货提醒
          {
            indexid: 'wtableindex1', text: '订单缺货', level: 1, url: '', orderbiz: 'OrderOutOfStock', hasitem: 'N', remind: 'N', popover: ''
          }, // 未被自动审核
          {
            indexid: 'wtableindex2', text: '订单待手审', level: 1, url: '', orderbiz: 'OrderPendingManualReview', hasitem: 'N', remind: 'N', popover: ''
          }, // 待同意淘宝换货申请
          {
            indexid: 'wtableindex4', text: '23H未发货', level: 1, url: '', orderbiz: 'TTHNOTSHIPPED', hasitem: 'N', remind: 'N', popover: '京东、唯品会平台超过23小时未发货'
          }, // 缺货订单
          {
            indexid: 'wtableindex6', text: '47H未发货', level: 1, url: '', orderbiz: 'FSHNOTSHIPPED', hasitem: 'N', remind: 'N', popover: '所有平台超过47小时未发货'
          }, // 云仓订单
          {
            indexid: 'wtableindex17', text: '未发货订单', level: 1, url: '', orderbiz: 'NOTSHIPPED', hasitem: 'Y', remind: 'N', popover: '未发货订单'
          }, // 未发货订单
          {
            indexid: 'wtableindex13', text: '异常订单', level: 1, url: '', orderbiz: 'ORDEREXCEPTION', hasitem: 'N', remind: 'N', popover: '价格、地址、物流异常的订单'
          }, // 异常订单
          {
            indexid: 'wtableindex3', text: '退单待审核', level: 1, url: '', orderbiz: 'RefundOrderPendingManualReview', hasitem: 'N', remind: 'N', popover: ''
          }, // 退换货售后确认
          {
            indexid: 'wtableindex15', text: '退单在途量', level: 1, url: '', orderbiz: 'ORDER_NOTINTO', hasitem: 'N', remind: 'N', popover: ''
          }, // 退单在途量
          {
            indexid: 'wtableindex14', text: '订单拒收量', level: 1, url: '', orderbiz: 'ORDER_REFUNDTOSTORE', hasitem: 'N', remind: 'N', popover: ''
          }, // 订单拒收量s
        ],
        // 待办订单：子集枚举，未发货订单
        wtableindex_itemZero: [
          {
            indexid: 'indexitem1', text: '待分配', level: 1, url: '', orderbiz: 'NOTSHIPPED_DFP', parent: 'NOTSHIPPED'
          },
          {
            indexid: 'indexitem2', text: '未确认', level: 1, url: '', orderbiz: 'NOTSHIPPED_WQR', parent: 'NOTSHIPPED'
          },
          {
            indexid: 'indexitem3', text: '缺货', level: 1, url: '', orderbiz: 'NOTSHIPPED_QH', parent: 'NOTSHIPPED'
          },
          {
            indexid: 'indexitem1', text: '已审核', level: 1, url: '', orderbiz: 'NOTSHIPPED_YSH', parent: 'NOTSHIPPED'
          },
          {
            indexid: 'indexitem2', text: '配货中', level: 1, url: '', orderbiz: 'NOTSHIPPED_PHZ', parent: 'NOTSHIPPED'
          },
        ],
        // 预警订单:父级枚举
        earlyIndex: [
          {
            indexid: 'wtableindex11', text: '商品维护错误', level: 1, url: '', orderbiz: 'ProductMaintenanceError', hasitem: 'Y', remind: 'N', popover: '订单商品中包含在系统中不存在的条码'
          }, // 商品维护错误
          {
            indexid: 'wtableindex16', text: '库存同步失败', level: 1, url: '', orderbiz: 'IESPLATFORMSKU_FAIL', hasitem: 'N', remind: 'N', popover: '库存同步失败'
          }, // 库存同步失败
          {
            indexid: 'wtableindex18', text: '订单转换失败', level: 1, url: '', orderbiz: 'ORDERTRANSFORMFailed', hasitem: 'Y', remind: 'N', popover: ''
          }, // 订单转换失败
          {
            indexid: 'wtableindex23', text: '改地址失败', level: 1, url: '', orderbiz: 'CHANGEADDRESSFAILED', hasitem: 'N', remind: 'N', popover: ''
          },
          {
            indexid: 'wtableindex8', text: '通知配货失败', level: 1, url: '', orderbiz: 'NotifyFailed', hasitem: 'Y', remind: 'N', popover: '订单传WMS系统或传云仓失败'
          }, // 24h未处理
          {
            indexid: 'wtableindex9', text: '取消配货失败', level: 1, url: '', orderbiz: 'CancelDeliveryFailed', hasitem: 'N', remind: 'N', popover: '订单从WMS系统或云仓撤回失败'
          }, // 24h未发货（京东）
          {
            indexid: 'wtableindex20', text: '传ERP异常订单', level: 1, url: '', orderbiz: 'ERP_EXCEPTION', hasitem: 'Y', remind: 'N', popover: ''
          },
          {
            indexid: 'wtableindex14', text: '超时发货', level: 1, url: '', orderbiz: 'DELIVERY_TIMELINESS_ORDER', hasitem: 'Y', remind: 'N', popover: ''
          },
          {
            indexid: 'wtableindex10', text: '平台发货失败', level: 1, url: '', orderbiz: 'PlatformDeliveryFailed', hasitem: 'N', remind: 'N', popover: ''
          }, // 48h未发货（其他）
          {
            indexid: 'wtableindex7', text: '订单超发', level: 1, url: '', orderbiz: 'OverIssuedOrders', hasitem: 'N', remind: 'N', popover: ''
          }, // 淘宝仅退款订单
          {
            indexid: 'wtableindex17', text: '自动退款失败', level: 1, url: '', orderbiz: 'AUTOREFUNDFailed', hasitem: 'Y', remind: 'N', popover: ''
          }, // 自动退款失败
          {
            indexid: 'wtableindex19', text: '退单转换失败', level: 1, url: '', orderbiz: 'REFUNDTRANSFORMFailed', hasitem: 'Y', remind: 'N', popover: ''
          }, // 退单转换失败
          {
            indexid: 'wtableindex12', text: '退单通知失败', level: 1, url: '', orderbiz: 'RefundOrderNotificationFailed', hasitem: 'N', remind: 'N', popover: '退单传WMS系统失败'
          }, // 退单通知失败
          {
            indexid: 'wtableindex22', text: '退单超时未入库', level: 1, url: '', orderbiz: 'REFUND_NOTIN_STOCK_TIMEOUT', hasitem: 'N', remind: 'N', popover: ''
          },          
          {
            indexid: 'wtableindex21', text: '传ERP异常退单', level: 1, url: '', orderbiz: 'ERP_EXCEPTION_RETURN', hasitem: 'Y', remind: 'N', popover: ''
          },
           {
            indexid: 'wtableindex30', text: '配货回传失败', level: 1, url: '', orderbiz: 'OMSAPILOGISTICSSENDERRORFailed', hasitem: 'Y', remind: 'N', popover: ''
          },
        ],
        // 预警订单:子集枚举,商品维护错误
        wtableindex_item: [
          {
            indexid: 'indexitem1', text: '通用', level: 1, url: '', orderbiz: 'ProductMaintenanceError_com', parent: 'ProductMaintenanceError'
          },
          {
            indexid: 'indexitem2', text: '淘宝', level: 1, url: '', orderbiz: 'ProductMaintenanceError_taobao', parent: 'ProductMaintenanceError'
          },
          {
            indexid: 'indexitem3', text: '淘宝分销', level: 1, url: '', orderbiz: 'ProductMaintenanceError_tbfx', parent: 'ProductMaintenanceError'
          },
          {
            indexid: 'indexitem4', text: '淘宝经销', level: 1, url: '', orderbiz: 'ProductMaintenanceError_tbjx', parent: 'ProductMaintenanceError'
          },
          {
            indexid: 'indexitem5', text: '京东', level: 1, url: '', orderbiz: 'ProductMaintenanceError_jd', parent: 'ProductMaintenanceError'
          }
        ],
        // 预警订单:子集枚举,自动退款失败
        wtableindex_itemOne: [
          {
            indexid: 'indexitem1', text: '淘宝退款', level: 1, url: '', orderbiz: 'REFUNDDETAIL_TB', parent: 'AUTOREFUNDFailed'
          },
          {
            indexid: 'indexitem2', text: '京东发货前退款', level: 1, url: '', orderbiz: 'REFUNDDETAIL_JDZJ', parent: 'AUTOREFUNDFailed'
          },
          {
            indexid: 'indexitem3', text: '通用退款', level: 1, url: '', orderbiz: 'REFUNDDETAIL_TY', parent: 'AUTOREFUNDFailed'
          },
        ],
        // 预警订单:子集枚举,自动退款失败
        wtableindex_itemTwo: [
          {
            indexid: 'indexitem1', text: '淘宝订单', level: 1, url: '', orderbiz: 'ORDER_TB', parent: 'ORDERTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '京东订单', level: 1, url: '', orderbiz: 'ORDER_JD', parent: 'ORDERTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '通用订单', level: 1, url: '', orderbiz: 'ORDER_TY', parent: 'ORDERTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '淘宝分销订单', level: 1, url: '', orderbiz: 'ORDER_TBFX', parent: 'ORDERTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '淘宝经销订单', level: 1, url: '', orderbiz: 'ORDER_TBJX', parent: 'ORDERTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '唯品会JITX订单', level: 1, url: '', orderbiz: 'ORDER_VIP', parent: 'ORDERTRANSFORMFailed'
          },
        ],
        // 预警订单:子集枚举,退单转换失败
        wtableindex_itemThree: [
          {
            indexid: 'indexitem1', text: '淘宝退款', level: 1, url: '', orderbiz: 'REFUNDORDER_TB', parent: 'REFUNDTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '京东退货', level: 1, url: '', orderbiz: 'REFUNDORDER_JD', parent: 'REFUNDTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '通用退款', level: 1, url: '', orderbiz: 'REFUNDORDER_TY', parent: 'REFUNDTRANSFORMFailed'
          },
          {
            indexid: 'indexitem2', text: '淘宝分销退款', level: 1, url: '', orderbiz: 'REFUNDORDER_TBFX', parent: 'REFUNDTRANSFORMFailed'
          },
        ],
        // 预警订单:子集枚举,传ERP异常订单
        wtableindex_item5: [
        {
            indexid: 'indexitem1', text: '零售传入失败', level: 1, url: '', orderbiz: 'ORDER_TO_ERP', parent: 'ERP_EXCEPTION'
          },
          {
            indexid: 'indexitem2', text: '零售生成失败', level: 1, url: '', orderbiz: 'ORDER_TO_ERP_GENFAIL', parent: 'ERP_EXCEPTION'
          },
        ],
        // 预警订单:子集枚举,传ERP异常退单
        wtableindex_item6: [
          {
            indexid: 'indexitem1', text: '零售传入失败', level: 1, url: '', orderbiz: 'REFUNDORDER_TO_ERP', parent: 'ERP_EXCEPTION_RETURN'
          },
          {
            indexid: 'indexitem2', text: '零售生成失败', level: 1, url: '', orderbiz: 'REFUNDORDER_TO_ERP_GENFAIL', parent: 'ERP_EXCEPTION_RETURN'
          },
        ],
        // 预警订单:子集枚举,通知配货失败
        wtableindex_item7: [
          {
            indexid: 'indexitem1', text: '通知WMS失败', level: 1, url: '', orderbiz: 'NOTIFYDELIVERYFAILED', parent: 'NotifyFailed'
          },
          {
            indexid: 'indexitem2', text: '通知云仓失败', level: 1, url: '', orderbiz: 'NOTIFYERPFAILED', parent: 'NotifyFailed'
          },
          {
            indexid: 'indexitem3', text: '云仓生成失败', level: 1, url: '', orderbiz: 'ERPGENFAILED', parent: 'NotifyFailed'
          },
          {
            indexid: 'indexitem4', text: '平台B2B配货失败', level: 1, url: '', orderbiz: 'OTBOUTSTORAGEERROR', parent: 'NotifyFailed'
          }

        ],
        // 预警订单: 子集枚举，超时发货
        wtableindex_item8: [
          {
            indexid: 'indexitem1', text: '普通订单', level: 1, url: '', orderbiz: 'DELIVERY_TIMELINESS', parent: 'DELIVERY_TIMELINESS_ORDER'
          },
          {
            indexid: 'indexitem2', text: '定金预售订单', level: 1, url: '', orderbiz: 'DELIVERY_TIMELINESS_DEPOSIT_PRESALE', parent: 'DELIVERY_TIMELINESS_ORDER'
          },
          {
            indexid: 'indexitem3', text: '全款预售订单', level: 1, url: '', orderbiz: 'DELIVERY_TIMELINESS_FULL_AMOUNT_PRESALE', parent: 'DELIVERY_TIMELINESS_ORDER'
          },
        ],
         // 预警订单: 子集枚举，超时发货
        wtableindex_item9: [
          {
            indexid: 'indexitem1', text: 'WMS回传失败', level: 1, url: '', orderbiz: 'OMSAPILOGISTICSSENDERROR', parent: 'OMSAPILOGISTICSSENDERRORFailed'
          },
          {
            indexid: 'indexitem2', text: '云仓回传失败', level: 1, url: '', orderbiz: 'WINGBSORETSERROR', parent: 'OMSAPILOGISTICSSENDERRORFailed'
          },
        ],


        // 畅销商品全部数据
        AllbestSellData:[],
        // 畅销商品数据
        bestSellData:[],
        // 畅销商品表头
        bestSellColumn: [
          {
            title: '排名',
            key:'RN',
            align: 'left',
          },
          {
            title: '商品',
            key: 'TITLE',
            align: 'left',
            render: (h, params) => {
              const vm = this;
              return h(
                'div',
                {
                  style: {
                  color:'var(--primary-color)',
                  cursor:'pointer'
                  },
                },
                [params.row.TITLE]
              );
            },

          },
          {
            title: '货号',
            key: 'PRODUCTCODE',
            align: 'left',
          },
          {
            title: '销售量',
            key: 'SUMTOT_SALES',
            align: 'left',
          },
          {
            title: '销售额',
            key: 'SUMTOT_AMT',
            align: 'left',
          },
          {
            title: '在库量',
            key: 'SUMQTY',
            align: 'left',
          }
        ],
        // 营销活动全部数据
        AllActivityData:[],
        // 营销活动数据
        activityData:[],
        // 营销活动表头
        activityColumn: [
          {
            title: '活动名称',
            key:'TITLE',
            align: 'left',
            render: (h, params) => {
              const vm = this;
              return h(
                'div',
                {
                  style: {
                  color:'var(--primary-color)',
                  cursor:'pointer'
                  },
                },
                [params.row.TITLE]
              );
            },
          },
          {
            title: '开始时间',
            key: 'STARTTIME',
            align: 'left',
          },
          {
            title: '结束时间',
            key: 'ENDTIME',
            align: 'left',
          },
          {
            title: '已赠',
            key: 'SUMCURNUM',
            align: 'left',
          }
        ],
        choosedExpressList: [],
        isEditDoPanel: false, // 是否编辑待办看板
        isEditWarnPanel: false, // 是否编辑预警看板
        showAddPanel: false, // 显示添加待办模块弹框
        showDoPanel: false, // 是否点了显示添加待办模块弹框
        showWarnPanel: false, // 是否点了显示添加预警模块弹框
        selectedModules: [], // 需要添加的模块
        moduleList: [], // 所有可添加的模块

        isNochangeFlag: false, // 是否没有更改过看板，展示默认的看板数据

        // intervalId: null, // 定时器，定时刷新待办预警订单
      };
    },
    directives: {  // 使用局部注册指令的方式
      resize: { // 指令的名称
        bind(el, binding) { // el为绑定的元素，binding为绑定给指令的对象
          let width = '', height = '';
          function isReize() {
            const style = document.defaultView.getComputedStyle(el);
            if (width !== style.width || height !== style.height) {
              binding.value();  // 关键
            }
            width = style.width;
            height = style.height;
          }
          el.__vueSetInterval__ = setInterval(isReize, 300);
        },
        unbind(el) {
          clearInterval(el.__vueSetInterval__);
        }
      }
    },
    created() {
      this._initialWtableindex = cloneDeep(this.wtableindex)
      this._initialEarlyIndex = cloneDeep(this.earlyIndex)
      this.getAllMenuList()
      this.getSystemParams()
      R3.requestHello();
      this.getPermissions(); // 获取权限
      this.getPermission('showAudioPower');// 暂存订单审核权限
      this.getExpiresshop();
      this.getInterceptionList(); // 获取系统参数设置拦截原因除外的其他拦截原因
      var homePage = JSON.parse(window.localStorage.getItem('homepage'))    
      if(!homePage){
        this.ISINDEXSHOW = 'Y'
      }else {
        this.ISINDEXSHOW = homePage.ISINDEXSHOW?homePage.ISINDEXSHOW:'Y'
      }
      if(homePage.passwordreset){
          var passwordreset = homePage.passwordreset
          if(passwordreset == 'Y'){
            this.$R3Dialog({
              dialogComponentName: 'changePassword', // 自定义的弹框组件
              title: '修改密码', // 弹框标题
              footerHide: true,
              externalOptions: {}
            }, () => {
            }, () => {this.$store.commit('customize/beforeSignout')});
          }
      }
      if(homePage.ISINDEXSHOW == 'N') {
        this.homepageURL = homePage.IndexImageUrl?homePage.IndexImageUrl:require('@yunque/assets/image/emptyWelcome.png')
      }else {
        // this.$emit('changePwdBox');
        // this.AD_CLIENT_NAME=JSON.parse(window.localStorage.getItem('userInfo')).userenv.$AD_CLIENT_NAME$
        this.listenerFunction();
        this.getAllbestSellData() //畅销商品数据
        this.getANowActivityData() //营销活动数据
        this.getShopArr() //获取店铺列表
        this.getManageActive(this.manageIsActive) //初始化获取本日经营概况
      }
    },
    beforeDestroy () {
      // if (this.intervalId) {
      //   clearInterval(this.intervalId); // 清除定时器
      // }
      document.removeEventListener("scroll", this.listenerFunction);
    },
    mounted() {
      // this.intervalId = setInterval(this.refreshData, 180000); // 每三分钟（180000毫秒）刷新一次待办和预警订单

      if(this.ISINDEXSHOW == 'N') {

      }else {
        this.refreshorderindex();
        // this.url = '/iframe/Home/Index.html';
        // 地图移入移出
        if ($(".bojun-branch")) {
            $(".bojun-dot").on("mouseover", function () {
                $(this).addClass("cur").siblings(".bojun-dot").removeClass("cur");
                var dataid = $(this).attr("data-id"),
                    comp = $("#regionid_" + dataid),
                    otherComp = $("#regionid_" + dataid).siblings(".branch-bojun-data");

                comp.fadeIn("fast").css({
                    "left": $(this).position().left + 40,
                    "top": $(this).position().top - comp.height() / 2 + 8
                });
                otherComp.hide();
            });

            $(".bojun-dot").on("mouseleave", function () {
                $("#regionid_" + $(this).attr("data-id")).hide();
                $(".bojun-dot").removeClass("cur");
            });
        }
      }
      Vue.prototype.$createWatermark({
        textContent: [JSON.parse(window.localStorage.getItem('userInfo')).ename+'  '+JSON.parse(window.localStorage.getItem('userInfo')).ename,new Date().format("yyyy-MM-dd hh:mm:ss")],
        id: 'r3-content-box',
        watermark_intervalWidth: 200, //  间隔宽度
        watermark_intervalheight: 200, // 间隔高度
        style: {
          webkitTransform: 'rotate(-25deg)',
          MozTransform: 'rotate(-25deg)',
          msTransform: 'rotate(-25deg)',
          OTransform: 'rotate(-25deg)',
          transform: 'rotate(-25deg)',
          visibility: '',
          position: 'absolute',
          overflow: 'hidden',
          zIndex: '9999',
          pointerEvents: 'none', // pointer-events:none  让水印不阻止交互事件
          opacity: 0.2,
          fontSize: '14px',
          fontFamily: '微软雅黑',
          color: '#aaaaaa',
          textAlign: 'left',
          width: '200px',
          height: '30px',
          display: 'block',
        }
      });
    },
    methods: {
      // refreshData() {
      //   console.log(111)
      //   this.checkUserRecord(this.loadorderdata)
      // },
      receivePropHandle(option) {
        const { propType, data } = option;
        if (propType === 'dynamic_list') {
          this.dynamic = data;
        }
      },
      /**
       * 全局任何地方使用的系统参数，没必要很多地方都调用一次
       */
      getSystemParams() {
        network.post('/p/cs/getSysParams').then(res => {
          if (res.data.code == 0) {
            const allParams = {};
            let allParamsList = []
            res.data.data.forEach(item => {
              allParamsList=[...allParamsList,...item.sysParam]
            })
            allParamsList.forEach(param => {
              allParams[param.paraName] = param.paraValue || '';
              if(param.paraName == 'ISUSERETURNBATCHMANAGEMENT'){
                let isFold = param.paraValue === 'True' ? true : false;
                window.localStorage.setItem('ISUSERETURNBATCHMANAGEMENTFLAG',isFold);
              }
               if(param.paraName == 'is_zhuque'){
                let isFold = param.paraValue === 'True' ? true : false;
                window.localStorage.setItem('yunque_is_zhuque',isFold);
              }
              
            })
            console.log(allParams, 'allParams_01')
            this.$store.commit('customize/setSystemParams', allParams);
          }
        })
      },
      getAllMenuList() {
        this.AllMenuList = [];
        let list = [...this._initialWtableindex,...this._initialEarlyIndex]
        list.forEach((item,index) => {
          let wtableindex_itemNew = [];
          this.AllMenuList.push(item.orderbiz.toUpperCase())
          if(item.orderbiz == "ProductMaintenanceError"){
            wtableindex_itemNew = this.wtableindex_item
          }else if(item.orderbiz == "AUTOREFUNDFailed") {
            wtableindex_itemNew = this.wtableindex_itemOne
          }else if(item.orderbiz == "ORDERTRANSFORMFailed") {
            wtableindex_itemNew = this.wtableindex_itemTwo
          }else if(item.orderbiz == "REFUNDTRANSFORMFailed") {
            wtableindex_itemNew = this.wtableindex_itemThree
          }else if(item.orderbiz == "ERP_EXCEPTION") {
            wtableindex_itemNew = this.wtableindex_item5
          }else if(item.orderbiz == "ERP_EXCEPTION_RETURN") {
            wtableindex_itemNew = this.wtableindex_item6
          }else if(item.orderbiz == "NotifyFailed") {
            wtableindex_itemNew = this.wtableindex_item7
          }else if(item.orderbiz == "NOTSHIPPED"){
            wtableindex_itemNew = this.wtableindex_itemZero
          }else if(item.orderbiz == "DELIVERY_TIMELINESS_ORDER"){
            wtableindex_itemNew = this.wtableindex_item8
          }else if(item.orderbiz == "OMSAPILOGISTICSSENDERRORFailed"){
            wtableindex_itemNew = this.wtableindex_item9
          }
          wtableindex_itemNew.forEach((value, index)=>{
            if (value.parent == item.orderbiz) {
              this.AllMenuList.push(value.orderbiz.toUpperCase())
            }
          });
        })
        // console.log(this.AllMenuList)
        // this.AllMenuList = this.AllMenuList.filter(item => item !== 'ProductMaintenanceError' 
        // && item !== 'AUTOREFUNDFailed' 
        // && item !== 'ORDERTRANSFORMFailed' 
        // && item !== 'REFUNDTRANSFORMFailed' 
        // && item !== 'ERP_EXCEPTION'
        // && item !== 'ERP_EXCEPTION_RETURN'
        // && item !== 'NotifyFailed'
        // && item !== 'NOTSHIPPED');
        // console.log(this.AllMenuList)
      },
      // 保存模块
      saveModule(type) {
        console.log(type)
        const wtableindex = this.agentOrder.map(item => item.orderbiz)
        const earlyIndex = this.warnOrder.map(item => item.orderbiz)
        const data = {
          wtableindex,
          earlyIndex
        }
        const params = {
          DATA_LIST: data
        }
        if( type === 'early') {
          this._saveEarly = true // 执行过保存的标记
        } else {
          this._saveWarn = true // 执行过保存的标记
        }
        network.post('/p/cs/watchboard/addUserRecord',params).then(res => {
          if(res.data.Code == 0) {
            this.$Message.success('保存成功');
            if(type === 'wtable') {
              this.isEditDoPanel = false
            } else if(type === 'early') {
              this.isEditWarnPanel = false
            }
            this.wtableindexChaxun = [];
            if(earlyIndex){
              this.wtableindexChaxun = [...this.wtableindexChaxun,...earlyIndex]
            }
            if(wtableindex){
              this.wtableindexChaxun = [...this.wtableindexChaxun,...wtableindex]
            }
            if(this.wtableindexChaxun.indexOf('NOTSHIPPED')>-1){  // 未发货订单
              this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('NOTSHIPPED'),1)
              this.wtableindex_itemZero.forEach(item => {
                this.wtableindexChaxun.push(item.orderbiz);
              })
            }
            if(this.wtableindexChaxun.indexOf('ProductMaintenanceError')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('NOTSHIPPED'),1)
                this.wtableindex_item.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('AUTOREFUNDFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('AUTOREFUNDFailed'),1)
                this.wtableindex_itemOne.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('ORDERTRANSFORMFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('ORDERTRANSFORMFailed'),1)
                this.wtableindex_itemTwo.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('REFUNDTRANSFORMFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('REFUNDTRANSFORMFailed'),1)
                this.wtableindex_itemThree.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('ERP_EXCEPTION')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('ERP_EXCEPTION'),1)
                this.wtableindex_item5.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('ERP_EXCEPTION_RETURN')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('ERP_EXCEPTION_RETURN'),1)
                this.wtableindex_item6.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('NotifyFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('NotifyFailed'),1)
                this.wtableindex_item7.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('DELIVERY_TIMELINESS_ORDER')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('DELIVERY_TIMELINESS_ORDER'),1)
                this.wtableindex_item8.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('OMSAPILOGISTICSSENDERRORFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('OMSAPILOGISTICSSENDERRORFailed'),1)
                this.wtableindex_item9.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              console.log(this.wtableindexChaxun)
              this.checkUserRecord(this.loadorderdata)
          } else {
            if( type === 'early') {
              this.restoreEarly()
            } else {
              this.restoreWarn()
            }
          }
        })
      },

      // 添加看板模块
      addPanel() {
        if(this.showDoPanel) {
          // 往看板里添加模块
          this.selectedModules.forEach(item => {
            const module = this._initialWtableindex.find(i => i.text === item)
            this.agentOrder.push({
              ...module
            })
          })
        } else if(this.showWarnPanel) {
          this.selectedModules.forEach(item => {
            const module = this._initialEarlyIndex.find(i => i.text === item)

            this.warnOrder.push({
              ...module
            })
          })
        }
        // 获取模块数据
        this.loadModuleData()
        this.selectedModules = []
        this.showAddPanel = false
        // 重置弹框标记
        this.showDoPanel = false
        this.showWarnPanel = false
      },

      // 填充模块数据
      loadModuleData() {
        // 更新待办订单模块
        if(this.agentOrder) {
          const newList = []
          this.agentOrder.forEach(item => {
            const panel = this._initialWtableindex.find(i => i.orderbiz === item.orderbiz)
            newList.push(cloneDeep(panel))
          })
          this.wtableindex = newList
        }
        // 更新预警订单模块
        if(this.warnOrder) {
          const newList = []
          this.warnOrder.forEach(item => {
            const panel = this._initialEarlyIndex.find(i => i.orderbiz === item.orderbiz)
            newList.push(cloneDeep(panel))
          })
          this.earlyIndex = newList
        }

        // 填充数据
        const dataList = this._toDoData || []
        if (dataList.length > 0) {
          const agentArr = [];
          const warnArr=[];

          // 待办订单遍历
          this.wtableindex.forEach((item, index)=>{
            // hasitem=Y说明有二级链接，一级统计=所有二级统计之和
            if (item.hasitem == 'Y') {
              let wtableindex_itemNew = [];
              let childArr = [];
              let indexsum = 0;
              if(item.orderbiz == "ProductMaintenanceError"){
                wtableindex_itemNew = this.wtableindex_item
              }else if(item.orderbiz == "AUTOREFUNDFailed") {
                wtableindex_itemNew = this.wtableindex_itemOne
              }else if(item.orderbiz == "ORDERTRANSFORMFailed") {
                wtableindex_itemNew = this.wtableindex_itemTwo
              }else if(item.orderbiz == "REFUNDTRANSFORMFailed") {
                wtableindex_itemNew = this.wtableindex_itemThree
              }else if(item.orderbiz == "ERP_EXCEPTION") {
                wtableindex_itemNew = this.wtableindex_item5
              }else if(item.orderbiz == "ERP_EXCEPTION_RETURN") {
                wtableindex_itemNew = this.wtableindex_item6
              }else if(item.orderbiz == "NotifyFailed") {
                wtableindex_itemNew = this.wtableindex_item7
              }else if(item.orderbiz == "NOTSHIPPED"){
                wtableindex_itemNew = this.wtableindex_itemZero
              }else if(item.orderbiz == "DELIVERY_TIMELINESS_ORDER") {
                wtableindex_itemNew = this.wtableindex_item8
              }
              console.log(wtableindex_itemNew,'============wtableindex_itemNew')
              wtableindex_itemNew.forEach((value, index)=>{
                if (value.parent == item.orderbiz) {
                  indexsum = indexsum + parseFloat(dataList[0][value.orderbiz.toUpperCase()]);
                  childArr.push({
                    orderbiz: value.orderbiz,
                    number: dataList[0][value.orderbiz.toUpperCase()],
                    indexid: item.indexid,
                    text: value.text,
                    popover: item.popover
                  });
                }
              });
              agentArr.push({
                orderbiz: item.orderbiz,
                number: dataList[0][item.orderbiz.toUpperCase()]?dataList[0][item.orderbiz.toUpperCase()]:indexsum,
                indexid: item.indexid,
                text: item.text,
                popover: item.popover,
                childArr
              });
            } else {
              // //没有二级链接直接显示统计数字
              if (item.level == 1 && item.remind == 'N') {
                agentArr.push({
                  orderbiz: item.orderbiz,
                  number: dataList[0][item.orderbiz.toUpperCase()],
                  indexid: item.indexid,
                  text: item.text,
                  popover: item.popover
                });
              }
            }
          });
          if (agentArr.length > 0) {
            this.agentOrder = agentArr;
          }
            // 预警订单遍历
          this.earlyIndex.forEach((item, index)=>{
            // hasitem=Y说明有二级链接，一级统计=所有二级统计之和
            if (item.hasitem == 'Y') {
              let indexsum = 0;
              let wtableindex_itemNew = [];
              let childArr = [];
              if(item.orderbiz == "ProductMaintenanceError"){
                wtableindex_itemNew = this.wtableindex_item
              }else if(item.orderbiz == "AUTOREFUNDFailed") {
                wtableindex_itemNew = this.wtableindex_itemOne
              }else if(item.orderbiz == "ORDERTRANSFORMFailed") {
                wtableindex_itemNew = this.wtableindex_itemTwo
              }else if(item.orderbiz == "REFUNDTRANSFORMFailed") {
                wtableindex_itemNew = this.wtableindex_itemThree
              }else if(item.orderbiz == "ERP_EXCEPTION") {
                wtableindex_itemNew = this.wtableindex_item5
              }else if(item.orderbiz == "ERP_EXCEPTION_RETURN") {
                wtableindex_itemNew = this.wtableindex_item6
              }else if(item.orderbiz == "NotifyFailed") {
                wtableindex_itemNew = this.wtableindex_item7
              }else if(item.orderbiz == "DELIVERY_TIMELINESS_ORDER") {
                wtableindex_itemNew = this.wtableindex_item8
              }else if(item.orderbiz == "OMSAPILOGISTICSSENDERRORFailed"){
                wtableindex_itemNew = this.wtableindex_item9
              }
              
              wtableindex_itemNew.forEach((value, index)=>{
                  if (value.parent == item.orderbiz) {
                    indexsum = indexsum + parseFloat(dataList[0][value.orderbiz.toUpperCase()]);
                    childArr.push({
                      orderbiz: value.orderbiz,
                      number: dataList[0][value.orderbiz.toUpperCase()],
                      indexid: item.indexid,
                      text: value.text,
                      popover: item.popover
                    });
                }
              });
              let middleObj={
                  orderbiz: item.orderbiz,
                  number: indexsum,
                  indexid: item.indexid,
                  text: item.text,
                  popover: item.popover
              }
              middleObj.childArr=childArr
              warnArr.push(middleObj)
            } else {
              // //没有二级链接直接显示统计数字
              if (item.level == 1 && item.remind == 'N') {
                warnArr.push({
                  orderbiz: item.orderbiz,
                  number: dataList[0][item.orderbiz.toUpperCase()],
                  indexid: item.indexid,
                  text: item.text,
                  popover: item.popover
                });
                // console.log(warnArr);
              }
            }
          });
          if (warnArr.length > 0) {
            this.warnOrder = warnArr;
          }
        }
      },

      onVisibleChange(val) {
        if(val === false) {
          // 重置弹框标记
          this.showDoPanel = false
          this.showWarnPanel = false
        }
      },

      // 切换待办订单拖拽
      switchDoDrag() {
        if(this.isEditDoPanel === false) {
          this._cacheEarlyIndex = cloneDeep(this.wtableindex)
          this._cacheEarlyOrder = cloneDeep(this.agentOrder)
        }

        // 未保存则恢复之前的模块
        if(!this._saveEarly && this.isEditDoPanel === true) {
          this.restoreEarly()
        }

        if(this._saveEarly) {
          this._saveEarly = false
        }
        this.isEditDoPanel = !this.isEditDoPanel
      },

      // 回复保存前的状态
      restoreEarly() {
        this.wtableindex = this._cacheEarlyIndex
        this.agentOrder = this._cacheEarlyOrder
      },

      // 打开添加待办模块弹框
      openDoPanelModal() {
        this.showAddPanel = true
        this.showDoPanel = true
        this.moduleList = cloneDeep(this._initialWtableindex.filter(item => {
          // 把没有展示的模块取出来
          const res = this.agentOrder.find(i => i.orderbiz === item.orderbiz)
          return res ? false : true
        }))
      },

      // 切换预警订单拖拽
      switchWarnDrag() {
        if(this.isEditWarnPanel === false) {
          this._cacheWarnIndex = cloneDeep(this.earlyIndex)
          this._cacheWarnOrder = cloneDeep(this.warnOrder)
        }

        // 未保存则恢复之前的模块
        if(!this._saveWarn && this.isEditWarnPanel === true) {
          this.restoreWarn()
        }
        if(this._saveWarn) {
          this._saveWarn = false
        }
        this.isEditWarnPanel = !this.isEditWarnPanel
      },

      // 回复保存前的状态
      restoreWarn() {
        this.earlyIndex = this._cacheWarnIndex
        this.warnOrder = this._cacheWarnOrder
      },

      // 打开添加预警模块弹框
      openWarnPanelModal() {
        this.showAddPanel = true
        this.showWarnPanel = true
        this.moduleList = cloneDeep(this._initialEarlyIndex.filter(item => {
          // 把没有展示的模块取出来
          const res = this.warnOrder.find(i => i.orderbiz === item.orderbiz)
          return res ? false : true
        }))
      },

      // 删除看板模块
      removePanel(list, index) {
        list.splice(index, 1)
      },

      getInterceptionList() {
        network.post('/p/cs/noSysParam/interceptionQuery',{}).then(res => {
          this.interceotionQuery = [];
          this.INTERCEPTION_CAUSEList = [];
          res.data.data.forEach(item => {
            this.INTERCEPTION_CAUSEList.push(item.INTERCEPTION_CAUSE);
            this.interceotionQuery.push(item.id);
          })
        })
      },
      getPermissions() {
        let params = {
          ISTABLE: 'true',
          AD_ACTION_NAME: 'T_V_OMSREFUNDORDERALL'
        }
        network.post('/p/cs/fetchActionsInCustomizePage',params).then(res => {
          if(res.data.code == 0){
            if(res.data.data.length > 0){
              var index = res.data.data.findIndex(item => item.webname=== 'T_OMSREFUNDORDER_新增')
              if(index < 0){
                localStorage.setItem('hideReturnOrExchange', true);
              }else {
                localStorage.setItem('hideReturnOrExchange', false);
              }
            }else {
              localStorage.setItem('hideReturnOrExchange', true);
            }
          }
        })
      },
      getPermission(type){
        if(type == 'showAudioPower') {
          let params = {
            "ad_table_id": 10883,
            "ad_action_id": 2971
          }
          network.post('/p/cs/group/have/permission', params).then((res) => {
            if(res.data.code == 0){
              localStorage.setItem('showAudioPower', res.data.data);
            }
          })
        }
      },
      // 获取授权过期店铺列表
      getExpiresshop () {
        network.post('/p/cs/expiresshop/query',{}).then(res => {
          if(res.data.code == 0) {
            if(res.data.data){
              res.data.data.forEach(item => {
                if(item.expirestype == 1){
                  item.important = true;
                }else if(item.expirestype == 2) {
                  item.important = false;
                }
              })
              this.expiresshop = res.data.data?res.data.data:[];
              let ids = [];
              this.expiresshop.forEach(item => {
                ids.push(item.id)
              })
              window.localStorage.setItem('overTimeStores',JSON.stringify(ids.join(',')))
            }else {
              this.expiresshop = [];
              let ids = [];
              window.localStorage.setItem('overTimeStores',JSON.stringify(ids.join(',')))
            }
          }
        })
      },
      // 去授权
      linkStoreDetail(id) {
        this.tabClose('T_V_IESSHOP');
        // 跳转
        window.parent.R3.store.commit('global/tabOpen', {
          type: 'V',
          tableName: 'T_V_IESSHOP',
          tableId: '10621',
          label: '平台店铺档案',
          id: id,
        });
      },
      //批量授权
      linkToAuthorList () {
        let list = [];
        this.expiresshop.forEach(item => {
          list.push(item.id) // shoptitle
        })
        // 通用订单跳转
        let tableName = 'T_V_IESSHOP';
        // 1、先关闭已打开的"订单管理" Tab 页
        this.tabClose(tableName);
        // 2、再打开"订单管理" Tab 页
        setTimeout(function () {
          window.parent.R3.store.commit('global/tabOpen', {
            type: 'S',
            label: '平台店铺档案',
            url: '/SYSTEM/TABLE/T_V_IESSHOP/10621?homeLink=true',
            isSetQuery: true,
            // queryData: {
            //   values: [
            //     { //VIRSTATUS
            //       display: 'text',
            //       colid: '192195',
            //       defaultValue: list.join(',')
            //     },
            //   ]
            // }
          });
        }, 10);
      },
      //查看更多产品动态
      moreProduct(){
        // let label = '产品动态'
        // let customizedModuleName = 'ProductTrends'
        // let customizedModuleId = 3204
        // console.log(this.$route.params)
        // R3.store.commit('global/tabOpen', {
        //   type : 'tableDetailAction'||'C',
        //           label,
        //           customizedModuleName,
        //           customizedModuleId
        // })
      },
      // 跳转产品动态详情页
      toProductDetail(){
        // let label = '产品动态详情'
        // let customizedModuleName = 'ProductTrendsDetail'
        // let customizedModuleId =1  //动态id
        // console.log(this.$route.params)
        // R3.store.commit('global/tabOpen', {
        //   type : 'tableDetailAction'||'C',
        //           label,
        //           customizedModuleName,
        // })
      },
      jumpLink(str,item){
        this.tabClose('EMS物流监控')
        if(item.linkType){
          R3.store.commit('global/tabOpen', {
            type: 'tableDetailAction' || 'C',
            label: 'MS物流监控',
            url: `/LINK/EMS物流监控/3556`,
          });
        }else {
          window.open(str)
        }
      },
      listenerFunction(e) {
        document.addEventListener('scroll', this.handleScroll, true);
      },
      handleScroll () {
        // let scroll = document.getElementsByClassName('page-wrapper')[0].scrollTop
        setTimeout(()=>{
          const dom = document.getElementsByClassName('animated')
          if(dom && dom.length > 0) {
            dom[0].style.display='none'
          }
        },500)
      },
      salechartscom(data, startday, endday, shopname) {
        //日期：横坐标，需要注意单位是小时or天
        var datalist = [];
        //开始等于结束时间说明横坐标必须显示小时
        if (startday == endday) {
            datalist = this.hourtime;
        } else {
            datalist = this.getAllDay(startday, endday); //返回两个日期之间的所有日期
        }
        // console.log(datalist, 'datalist_001');
        var orderlist = [];//订单量
        var outlist = [];//发货量
        var refundlist = [];//退货量
        var orderprice = [];//销售额
        var refundprice = [];//售后退款总额
        datalist.forEach((item,index)=>{
          // 新街口返回的 日期带-：DAYDATE=2025-02-24
          var itemdata = item;// this.strreplace(item, "-");
          var exitdatanumber = [];
            //判断Rows是否为null
            if (data.detail && data.detail.length) {
                //开始等于结束时间说明横坐标必须显示小时
                if (startday == endday) {
                    //小时列名DAYDATE
                    exitdatanumber = data.detail.filter(function (p) {
                        return p.DAYDATE == itemdata;
                    });
                } else {
                    //天列名ORDERDATE
                    exitdatanumber = data.detail.filter(function (p) {
                        return p.ORDERDATE == itemdata;
                    });
                }

                if (exitdatanumber.length > 0) {
                    orderlist.push(exitdatanumber[0].ORDERNUMBER);
                    outlist.push(exitdatanumber[0].OUTORDER);
                    refundlist.push(exitdatanumber[0].REFUNDNUMBER)
                    orderprice.push(exitdatanumber[0].ORDERPRICE.toFixed(0));
                    refundprice.push(exitdatanumber[0].REFUNDPRICEE.toFixed(0));
                } else {
                    orderlist.push(0);
                    outlist.push(0);
                    refundlist.push(0);
                    orderprice.push(0);
                    refundprice.push(0);
                }
            }
        });

        var legenddata = [];
        var seriesdata = [];
        //根据页面图例显示折线

        if ($('#parentcharts_dd').hasClass('echartvisit')) {
            legenddata.push('订单数');
            seriesdata.push({
                name: '订单数',
                type: 'line',
                data: orderlist,
                markPoint: {
                    data: [
                        { type: 'max', name: '最大值' }
                    ]
                },
                itemStyle:{					//---图形形状
	                	color:'#ACDAFF',
	                },
            });
        }
        if ($('#parentcharts_fh').hasClass('echartvisit')) {
            legenddata.push('已发货订单数');
            seriesdata.push({
                name: '已发货订单数',
                type: 'line',
                data: outlist,
                markPoint: {
                    data: [
                        { type: 'max', name: '最大值' }
                    ]
                },
                itemStyle:{					//---图形形状
	                	color:'#95E0BF',
	                },
            });
        }
        if ($('#parentcharts_td').hasClass('echartvisit')) {
            legenddata.push('已退订单数');
            seriesdata.push({
                name: '已退订单数',
                type: 'line',
                data: refundlist,
                markPoint: {
                    data: [
                        { type: 'max', name: '最大值' }
                    ]
                },
                itemStyle:{					//---图形形状
	                	color:'#FFE7D4',
	                },

            });
        }
        if ($('#parentcharts_xs').hasClass('echartvisit')) {
            legenddata.push('销售额');
            seriesdata.push({
                name: '销售额',
                type: 'line',
                yAxisIndex: 1,
                data: orderprice,
                markPoint: {
                    data: [
                        { type: 'max', name: '最大值' }
                    ]
                },
                itemStyle:{					//---图形形状
	                	color:'#FFE2EE',
	                },
            });
        }
        if ($('#parentcharts_tk').hasClass('echartvisit')) {
            legenddata.push('售后退款总额');
            seriesdata.push({
                name: '售后退款总额',
                type: 'line',
                yAxisIndex: 1,
                data: refundprice,
                markPoint: {
                    data: [
                        { type: 'max', name: '最大值' }
                    ]
                },
                itemStyle:{
	                	color:'#F3B6B4',//---图形形状
	                },
            });
        }

        //副标题
        var selecttext = shopname;
        var subtext = '所有店铺';
        if (selecttext.length > 0) {
            if (selecttext.length > 20) {
                subtext = selecttext.substring(0, 20) + '...';
            } else {
                subtext = selecttext;
            }
        }

        var option = null;
        option = {
            title: {
              text: '经营概况',
              subtext: subtext ,
              itemGap: 20,
              textStyle: {
                  height: 20,
                  fontSize: 14,
                  fontFamily:' PingFangSC-Medium, PingFang SC',
                  fontWeight: 500,
                  color: '#333333',// 主标题文字颜色
                  lineHeight: 20
              },
              },
            tooltip: { trigger: 'axis' },
            legend: {
                data: legenddata,
                x: 'right',
            },
            grid: {
                left: '7%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            toolbox: {
                show: false,
                feature: {
                    dataZoom: {
                        yAxisIndex: 'none'
                    },
                    dataView: { readOnly: false },
                    magicType: { type: ['line', 'bar'] },
                    restore: {},
                    saveAsImage: {}
                }
            },
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: datalist
            },
            yAxis: [
                {
                    type: 'value',
                    //name: '单量(件)',
                     position:'left',
                     axisLine:{					//---坐标轴 轴线
                        show:false,
                     },
                    axisLabel: {
                        formatter: '{value}'
                    },
                    splitLine:{					//---grid 区域中的分隔线
                      show:true,					//---是否显示，'category'类目轴不显示，此时我的y轴为类目轴，splitLine属性是有意义的
                      lineStyle:{
                        color:'#F5F7F8',
                        width:1,
                        type:'dashed',			//---类型
                      },
                    }
                },
                {
                    type: 'value',
                    //name: '金额(元)',
                     position:'right',
                     axisLine:{					//---坐标轴 轴线
                        show:false,
                     },
                    axisLabel: {
                        formatter: '￥{value}'
                    },

                    splitLine:{					//---grid 区域中的分隔线
                      show:true,					//---是否显示，'category'类目轴不显示，此时我的y轴为类目轴，splitLine属性是有意义的
                      lineStyle:{
                        color:'#F5F7F8',
                        width:1,
                        type:'dashed',			//---类型
                      },
                    }
                }
            ],
            series: seriesdata
        };
        if (option && typeof option === "object") {
          let myChart = echarts.init(document.getElementById('msgChart'),'macarons')
          myChart.setOption(option, true);
          myChart.resize();
        }
      },
    // 当左侧搜索栏变化时 改变图表宽度
    resize(){
      this.salechartscom(this.initdata, this.startTime, this.endTime, this.shopName);//通用方法
    },
    //五数(经营概况)事件添加/移除折线
    changeEcharts (index) {
      let box=$(".part")[index]
        if (this.initdata) {
            var checkres = box.className=='part echartvisit'?true:false;
            if (checkres) {
              box.className='part'
            } else {
              box.className='part echartvisit'
            }
            this.salechartscom(this.initdata, this.startTime, this.endTime, this.shopName);//通用方法
        }
    },
    //区域占比图
    areasalerank(viewList) {
        console.log(viewList, 'viewList')
        var summoney = 0;
        var hasmoneypro = [];//产生交易额省份
        var topmoneypro = [];//top省份
        this.mappriceinit();//初始化区域数据￥0.00
        let allPercent = 0;
        viewList.forEach((item,index)=>{
            summoney += item.ORDERPRICE;
            if(index == viewList.length - 1){
              item.percent = (100 - allPercent).toFixed(2)
            } else {
              console.log(item.ORDERPRICE)
              console.log(this.manageDataNow.ORDERPRICE)
              item.percent = ((item.ORDERPRICE/Number(this.manageDataNow.ORDERPRICE))*100).toFixed(2)
              allPercent += Number(item.percent)
            }
            //读取省销售金额
               this.provincePrice.forEach((i)=>{//更新区域数据
                 if(i.id== item.REGIONID){
                   i.price=item.ORDERPRICE
                   i.percent = item.percent?item.percent+'%':''
                   i.percentOne = item.percent?item.percent:0
                   if(item.ORDERPRICE > 0) {
                     hasmoneypro.push({ name: i.name, money: item.ORDERPRICE, spell: i.spell, percent: i.percentOne });
                   }
                 }
               })
        });
        //top5 百分比
        $("#salemoney_stance").html("");
        $("#topproportion").text("");
        if (hasmoneypro.length > 0) {
          var newtest = hasmoneypro.sort(function (a, b) { return a.money - b.money; });
          var irank = 5;
          if (hasmoneypro.length < 5) {
            irank = hasmoneypro.length;
          }
          var i = 0;
          var proportionhtml = '';
          var topproportion = 0;//top5 占比
          let top5Percent = 0;
          while (i < irank) {
              //加入top集合
              topmoneypro.push({
                  name: hasmoneypro[hasmoneypro.length - 1 - i].name,
                  money: hasmoneypro[hasmoneypro.length - 1 - i].money,
                  spell: hasmoneypro[hasmoneypro.length - 1 - i].spell,
                  percent: hasmoneypro[hasmoneypro.length - 1 - i].percent,
              });
              var proname = hasmoneypro[hasmoneypro.length - 1 - i].name;
              var money = hasmoneypro[hasmoneypro.length - 1 - i].money;
              var proportion = this.percentNum(money, summoney);
              topproportion += money;
              proportionhtml =
              '<h5 style="font-weight: 500;">NO' + (i + 1) + ' ' + proname + ' ￥' + money.toFixed(0) + '</h5>' +
              '<div class="progress" style="margin:8px 0 12px;height: 10px;background-color:#DADADA;border-radius: 8px">' +
                  '	<div style="background-color:#ECF2FF;border-radius: 8px;width: ' + proportion + '%;height:100%">' +
                  '	</div>' +
              '</div>';
              $("#salemoney_stance").append(proportionhtml); //销售额排行
              // top5Percent += Number(hasmoneypro[hasmoneypro.length - 1 - i].percent)
              i++;
          }
          top5Percent = ((Number(topproportion)).toFixed(0) / this.manageDataNow.ORDERPRICE).toFixed(4) * 100;
          if (top5Percent > 100) top5Percent = 100
          // console.log(top5Percent)
          $("#topproportion").text(top5Percent.toFixed(2)+'%'); //占全国销量百分比
        }
        this.mapaddlittle(topmoneypro); //高亮
    },
    //地图top高亮打点
    mapaddlittle(toparray) {
          this.province.rows.forEach((item,index)=>{
            $("#bojun-dot-" + item.spell).attr("class", "bojun-dot " + item.spell);
        });
          toparray.forEach((item,index)=>{
            $("#bojun-dot-" + item.spell).attr("class", "bojun-dot-big " + item.spell + " bojun-top" + (index + 1) + " cur");
        });
    },
    percentNum(num1, num2) {
        return (Math.round(num1 / num2 * 10000) / 100.00);
    },
      //设置标准时间格式
      //定义正则表达式全部替换
      strreplace(cont, rule) {
          var reg = new RegExp(rule, "g");
          var realid = cont.replace(reg, "");
          return realid;
      },
      setEormat(){
         /**
         *对Date的扩展，将 Date 转化为指定格式的String
         *月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符，
         *年(y)可以用 1-4 个占位符，毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
         *例子：
         *(new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
         *(new Date()).Format("yyyy-M-d h:m:s.S")      ==> 2006-7-2 8:9:4.18
         */
        Date.prototype.format = function (fmt) {
          let o = {
            'M+': this.getMonth() + 1, // 月份
            'd+': this.getDate(), // 日
            'h+': this.getHours(), // 小时
            'm+': this.getMinutes(), // 分
            's+': this.getSeconds(), // 秒
            'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
            S: this.getMilliseconds() // 毫秒
          };
          if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (`${this.getFullYear()}`).substr(4 - RegExp.$1.length));
          for (let k in o) { if (new RegExp(`(${k})`).test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((`00${o[k]}`).substr((`${o[k]}`).length))); }
          return fmt;
        };
      },
      // 显示订单数据更新时间
      showupdatetimeOne() {
        this.setEormat()
        var systime = new Date();
        this.LocaleTimeOne=systime.format("yyyy-MM-dd hh:mm:ss")
        // console.log('当前时间',this.LocaleTime,systime.format("yyyy-MM-dd hh:mm:ss"))
      },
      //显示更新时间
      showupdatetime(obj) {
        const { updateType } = obj || {};
        this.setEormat()
        var systime = new Date();
        const updateTimes = {
          'SERVICE': 'LocaleTime', // 右上角服务到期刷新时间
          'BUSINESS': 'localTimeState', // 经营状况刷新时间
        }
        const realTimeKey = updateTimes[updateType] || null;
        if (realTimeKey) {
          this[realTimeKey] = systime.format("yyyy-MM-dd hh:mm:ss")
        }
        // this.LocaleTime=systime.format("yyyy-MM-dd hh:mm:ss")
        // console.log('当前时间',this.LocaleTime,systime.format("yyyy-MM-dd hh:mm:ss"))
      },
      //获得某月的天数
      getMonthDays(nowYear,myMonth){
          var monthStartDate = new Date(nowYear, myMonth, 1);
          var monthEndDate = new Date(nowYear, myMonth + 1, 1);
          var days = (monthEndDate - monthStartDate)/(1000 * 60 * 60 * 24);
          return days;
      },
      //格局化日期：yyyy-MM-dd
      formatDate(date) {
          var myyear = date.getFullYear();
          var mymonth = date.getMonth()+1;
          var myweekday = date.getDate(); //从周一开始

          if(mymonth < 10){
          mymonth = "0" + mymonth;
          }
          if(myweekday < 10){
          myweekday = "0" + myweekday;
          }
          return (myyear+"-"+mymonth + "-" + myweekday);
      },
      //返回两个日期之间的所有日期：格式：yyyy-MM-dd
      getAllDay(begin, end) {
          var daysArray = [];
          var ab = begin.split("-");
          var ae = end.split("-");
          var db = new Date();
          db.setUTCFullYear(ab[0], ab[1] - 1, ab[2]);
          var de = new Date();
          de.setUTCFullYear(ae[0], ae[1] - 1, ae[2]);
          var unixDb = db.getTime();
          var unixDe = de.getTime();
          for (var k = unixDb; k <= unixDe;) {
              daysArray.push((new Date(parseInt(k))).format('yyyy-MM-dd'));
              k = k + 24 * 60 * 60 * 1000;
          }
          return daysArray;
      },
      // 顶部订单信息后的刷新按钮,只刷新
      refreshOrderInfo(option) {
        // handleType='false'
        const { handleType } = option || {};
        this.checkUserRecord(this.loadorderdata, handleType);
      },
      //手动刷新按钮   流程：移除容器元素，从新加载
      // 刷新所有
      refreshorderindex(option) {
        this.showupdatetime({ updateType: 'SERVICE' }); //模块二数据
        //模块一数据
        this.refreshOrderInfo(option);
        // 经营状况的刷新时间，默认打开时调用，手动点击右上角刷新按钮不调用
        this.refreshStateOfBusiness();
      },
      // 经营状况的刷新按钮
      refreshStateOfBusiness() {
        this.showupdatetime({ updateType: 'BUSINESS' });
        this.manageIsActive = 0 //图标模块刷新
        this.$refs.DropDownCom.choosedExpress = []//检索项清空
        this.getManageActive(this.manageIsActive); //初始化获取本日经营概况
      },
      // 查询用户是否更改过看板模块
      // 如果没改，则用前端默认的模块，否则查接口获取展示模块
      checkUserRecord(callback,type) {
        network.get('/p/cs/watchboard/checkUserRecord').then(async res => {
          if (res.data.Code == 0) {
            if(res.data.Message === "true") {
              // 读取用户配置的看板
              const backInfo = { callback, type }
              await this.queryUserRecord(backInfo)
            } else {
              this.isNochangeFlag = true;
              if(callback) {
                callback(type)
              }
            }
          }
        })
      },
      // 查询用户存的看板模块
      async queryUserRecord(option) {
        const { callback, type } = option || {}
        await network.get('/p/cs/watchboard/queryUserRecord').then(res => {
          if (res.data.Code == 0) {
            let errorDataFlag = false;
            const dataJson = res.data.Rows.DATA_LIST || '{}'
            // const dataJson = "{\"wtableindex\":[\"OrderPendingManualReview\",\"NOTSHIPPED\",\"ORDEREXCEPTION\",\"DELIVERY_TIMELINESS\",\"OverIssuedOrders\",\"RefundOrderPendingManualReview\",\"ORDER_NOTINTO\",\"ORDER_REFUNDTOSTORE\",\"OrderOutOfStock\",\"TTHNOTSHIPPED\",\"FSHNOTSHIPPED\",\"PRESALESENDREMIND\"],\"earlyIndex\":[\"ProductMaintenanceError\",\"ORDERTRANSFORMFailed\",\"NotifyFailed\",\"ERP_EXCEPTION\",\"PlatformDeliveryFailed\",\"AUTOREFUNDFailed\",\"RefundOrderNotificationFailed\",\"ERP_EXCEPTION_RETURN\",\"IESPLATFORMSKU_FAIL\",\"CHANGEADDRESSFAILED\",\"CancelDeliveryFailed\",\"REFUNDTRANSFORMFailed\",\"REFUND_NOTIN_STOCK_TIMEOUT\"],\"nottip\":[\"SCANNINGSTORAGEIN\"]}"
            const {wtableindex, earlyIndex} = JSON.parse(dataJson)
            if(wtableindex.indexOf('OverIssuedOrders') > -1){
              errorDataFlag = true;
              wtableindex.splice(wtableindex.indexOf('OverIssuedOrders'),1);
              earlyIndex.splice(0, 0, 'OverIssuedOrders')
            }
            if(wtableindex.indexOf('DELIVERY_TIMELINESS') > -1){
              errorDataFlag = true;
              wtableindex.splice(wtableindex.indexOf('DELIVERY_TIMELINESS'),1);
              earlyIndex.splice(0, 0, 'DELIVERY_TIMELINESS')
            }
            // 如果存在历史错误数据，重新组装数据并保存新数据
            if(errorDataFlag){
              const data = {
                wtableindex,
                earlyIndex
              }
              const params = {
                DATA_LIST: data
              }
              network.post('/p/cs/watchboard/addUserRecord',params).then(res => {
                if(res.data.Code == 0) {
                  // this.$Message.success('保存成功');
                }
              })
            }
            // 更新待办订单
            this.wtableindexChaxun = [];
            if(wtableindex) {
              this.wtableindexChaxun = [...this.wtableindexChaxun,...wtableindex]
              const newList = []
              wtableindex.forEach(item => {
                const panel = this._initialWtableindex.find(i => i.orderbiz === item)
                newList.push(cloneDeep(panel))
              })
              this.wtableindex = newList
              if(this.wtableindexChaxun.indexOf('NOTSHIPPED')>-1){  // 未发货订单
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('NOTSHIPPED'),1)
                this.wtableindex_itemZero.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
            }
            // 更新预警订单
            if(earlyIndex) {
              this.wtableindexChaxun = [...this.wtableindexChaxun,...earlyIndex]
              const newList = []
              earlyIndex.forEach(item => {
                const panel = this._initialEarlyIndex.find(i => i.orderbiz === item)
                newList.push(cloneDeep(panel))
              })
              this.earlyIndex = newList
              // let cludeorderbiz = ['ProductMaintenanceError','AUTOREFUNDFailed','ORDERTRANSFORMFailed','REFUNDTRANSFORMFailed','ERP_EXCEPTION','ERP_EXCEPTION_RETURN','NotifyFailed']
              // cludeorderbiz.forEach(item => {
              //   if(this.wtableindexChaxun.indexOf(item)>-1){
              //     this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf(item),1)
              //     this.wtableindex_item.forEach(item => {
              //       this.wtableindexChaxun.push(item.orderbiz);
              //     })
              //   }
              // })
              if(this.wtableindexChaxun.indexOf('ProductMaintenanceError')>-1){
                // this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('NOTSHIPPED'),1)
                this.wtableindex_item.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('AUTOREFUNDFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('AUTOREFUNDFailed'),1)
                this.wtableindex_itemOne.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('ORDERTRANSFORMFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('ORDERTRANSFORMFailed'),1)
                this.wtableindex_itemTwo.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('REFUNDTRANSFORMFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('REFUNDTRANSFORMFailed'),1)
                this.wtableindex_itemThree.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('ERP_EXCEPTION')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('ERP_EXCEPTION'),1)
                this.wtableindex_item5.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('ERP_EXCEPTION_RETURN')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('ERP_EXCEPTION_RETURN'),1)
                this.wtableindex_item6.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('NotifyFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('NotifyFailed'),1)
                this.wtableindex_item7.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('DELIVERY_TIMELINESS_ORDER')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('DELIVERY_TIMELINESS_ORDER'),1)
                this.wtableindex_item8.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
              if(this.wtableindexChaxun.indexOf('OMSAPILOGISTICSSENDERRORFailed')>-1){
                this.wtableindexChaxun.splice(this.wtableindexChaxun.indexOf('OMSAPILOGISTICSSENDERRORFailed'),1)
                this.wtableindex_item9.forEach(item => {
                  this.wtableindexChaxun.push(item.orderbiz);
                })
              }
            }
            // fix:31569204待办数据 顺序：checkUserRecord->checkUserRecord->toDoOrder
            if(callback) {
              callback(type)
            }
            console.log(this.wtableindexChaxun)
          }
        })
      },
      // 请求api并显示待办订单各项数值
      loadorderdata(type) {
        this.showupdatetimeOne();
        this.setEormat();
        let threeMonthAgo = new Date();
        threeMonthAgo.setMonth(new Date().getMonth() - 3);
        let wtableindexChaxunUpper = [];
        this.wtableindexChaxun.forEach(item => {
          wtableindexChaxunUpper.push(item.toUpperCase())
        })
        const userInfo = JSON.parse(window.localStorage.getItem('userInfo'))
        this.isAdmin=userInfo ? userInfo.isadmin : false //获取登录用户名称
        let menu;
        if((this.isAdmin && this.isNochangeFlag) || this.isNochangeFlag){
          menu = this.AllMenuList
        }else {
          menu = wtableindexChaxunUpper
        }
        let param = { startTime: threeMonthAgo.format('yyyy-MM-dd'), endTime: new Date().format('yyyy-MM-dd'),menu };
        if(type=='false'){
          param.usecache = false;
        }else {
          param.usecache = true;
        }
        network.post('/p/cs/watchboard/toDoOrder', param).then((res) => {
          let dataList = [res.data.Rows];
          // dataList[0].OTBOUTSTORAGEERROR = 22;
          //           dataList[0].WINGBSORETSERROR = 202;

          this._toDoData = cloneDeep(dataList); // 缓存接口数据。后续填充值时直接从这个缓存区
          if (res.data.Code == 0) {
            if (dataList.length > 0) {
              let that = this;
              const agentArr = [];
              const warnArr=[];
              const childArr = [];
              if(this.wtableindexChaxun.length > 0 || this.isAdmin){

                // 待办订单遍历
                this.wtableindex.forEach((item, index)=>{
                  // hasitem=Y说明有二级链接，一级统计=所有二级统计之和
                  if (item.hasitem == 'Y') {
                    let ddlhtml = '';
                    let indexsum = 0;
                    let wtableindex_itemNew = [];
                    let childArr = [];
                    if(item.orderbiz == "ProductMaintenanceError"){
                      wtableindex_itemNew = this.wtableindex_item
                    }else if(item.orderbiz == "AUTOREFUNDFailed") {
                      wtableindex_itemNew = this.wtableindex_itemOne
                    }else if(item.orderbiz == "ORDERTRANSFORMFailed") {
                      wtableindex_itemNew = this.wtableindex_itemTwo
                    }else if(item.orderbiz == "REFUNDTRANSFORMFailed") {
                      wtableindex_itemNew = this.wtableindex_itemThree
                    }else if(item.orderbiz == "ERP_EXCEPTION") {
                      wtableindex_itemNew = this.wtableindex_item5
                    }else if(item.orderbiz == "ERP_EXCEPTION_RETURN") {
                      wtableindex_itemNew = this.wtableindex_item6
                    }else if(item.orderbiz == "NotifyFailed") {
                      wtableindex_itemNew = this.wtableindex_item7
                    }else if(item.orderbiz == "NOTSHIPPED"){
                      wtableindex_itemNew = this.wtableindex_itemZero
                    }else if(item.orderbiz == "DELIVERY_TIMELINESS_ORDER") {
                      wtableindex_itemNew = this.wtableindex_item8
                    }
                    wtableindex_itemNew.forEach((value, index)=>{
                      if (value.parent == item.orderbiz) {
                        // console.log('参数一', values.orderbiz);
                        // console.log('参数二', dataList[0][value.orderbiz.toUpperCase()]);
                        // console.log('参数三', item.indexid);
                        indexsum = indexsum + parseFloat(dataList[0][value.orderbiz.toUpperCase()]);
                        childArr.push({
                          orderbiz: value.orderbiz,
                          number: dataList[0][value.orderbiz.toUpperCase()],
                          indexid: item.indexid,
                          text: value.text,
                          popover: item.popover
                        });
                      }
                    });
                    agentArr.push({
                      orderbiz: item.orderbiz,
                      number: dataList[0][item.orderbiz.toUpperCase()]?dataList[0][item.orderbiz.toUpperCase()]:indexsum,
                      indexid: item.indexid,
                      text: item.text,
                      popover: item.popover,
                      childArr
                    });
                  } else {
                    // //没有二级链接直接显示统计数字
                    if (item.level == 1 && item.remind == 'N') {
                      agentArr.push({
                        orderbiz: item.orderbiz,
                        number: dataList[0][item.orderbiz.toUpperCase()],
                        indexid: item.indexid,
                        text: item.text,
                        popover: item.popover
                      });
                      // console.log(agentArr);
                    }
                  }
                });
                if (agentArr.length > 0) {
                  this.agentOrder = agentArr;
                }

                // 预警订单遍历
                this.earlyIndex.forEach((item, index)=>{
                  // hasitem=Y说明有二级链接，一级统计=所有二级统计之和
                  if (item.hasitem == 'Y') {
                    let indexsum = 0;
                    let wtableindex_itemNew = [];
                    let childArr = [];
                    if(item.orderbiz == "ProductMaintenanceError"){
                      wtableindex_itemNew = this.wtableindex_item
                    }else if(item.orderbiz == "AUTOREFUNDFailed") {
                      wtableindex_itemNew = this.wtableindex_itemOne
                    }else if(item.orderbiz == "ORDERTRANSFORMFailed") {
                      wtableindex_itemNew = this.wtableindex_itemTwo
                    }else if(item.orderbiz == "REFUNDTRANSFORMFailed") {
                      wtableindex_itemNew = this.wtableindex_itemThree
                    }else if(item.orderbiz == "ERP_EXCEPTION") {
                      wtableindex_itemNew = this.wtableindex_item5
                    }else if(item.orderbiz == "ERP_EXCEPTION_RETURN") {
                      wtableindex_itemNew = this.wtableindex_item6
                    }else if(item.orderbiz == "NotifyFailed") {
                      wtableindex_itemNew = this.wtableindex_item7
                    }else if(item.orderbiz == "DELIVERY_TIMELINESS_ORDER") {
                      wtableindex_itemNew = this.wtableindex_item8
                    }else if(item.orderbiz == "OMSAPILOGISTICSSENDERRORFailed"){
                      wtableindex_itemNew = this.wtableindex_item9
                    }
                    wtableindex_itemNew.forEach((value, index)=>{
                        if (value.parent == item.orderbiz) {
                          indexsum = indexsum + parseFloat(dataList[0][value.orderbiz.toUpperCase()]);
                          childArr.push({
                            orderbiz: value.orderbiz,
                            number: dataList[0][value.orderbiz.toUpperCase()],
                            indexid: item.indexid,
                            text: value.text,
                            popover: item.popover
                          });
                      }
                    });
                    let middleObj={
                        orderbiz: item.orderbiz,
                        number: indexsum,
                        indexid: item.indexid,
                        text: item.text,
                        popover: item.popover
                    }
                    middleObj.childArr=childArr
                    warnArr.push(middleObj)
                  } else {
                    // //没有二级链接直接显示统计数字
                    if (item.level == 1 && item.remind == 'N') {
                      warnArr.push({
                        orderbiz: item.orderbiz,
                        number: dataList[0][item.orderbiz.toUpperCase()],
                        indexid: item.indexid,
                        text: item.text,
                        popover: item.popover
                      });
                      // console.log(warnArr);
                    }
                  }
                });
                if (warnArr.length > 0) {
                  this.warnOrder = warnArr;
                  // console.log(this.warnOrder)
                }
              }
            }
          }
        });
      },
      /**
     * 打开"退换货单" Tab 页
     * @param queryData 查询条件传参
     */
    tabRefundOrderOpen(queryData) {
      let virtual={
        "id": 10612,
        "menu_type": "TABLE",
        "permission": "QUERY"
      }
       network.post('/p/cs/permission/has',virtual).then((res) => {
         console.log(res)
         if(!res.data){
           this.$Message.warning('该账号无权限,不能跳转');
         }else{
          let tableName = 'T_V_OMSREFUNDORDERALL';
          // 1、先关闭已打开的"订单管理" Tab 页
          this.tabClose(tableName);
          // 2、再打开"订单管理" Tab 页
          setTimeout(function () {
            if(!queryData.values.find(i=>i.colid==='172779')){
              queryData.values.push({  // CREATIONDATE
                display: 'OBJ_DATE',
                colid: '172779',
                defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
              });
            }
             window.parent.R3.store.commit('global/tabOpen', {
                  type: 'S',
                  tableName: tableName,
                  tableId: '10612',
                  isSetQuery: true,
                  queryData: queryData
              });
          }, 10);
         }
       })

    },
      /**
       * tab 标签关闭
       * @param tableName 表名
       */
      tabClose(tableName) {
        let tabs = window.parent.vm.$store.state.global.openedMenuLists.filter((p) => p.tableName == tableName);
        if (tabs.length > 0) {
          const tab = tabs[0];
          const fullPath = tab.routeFullPath;
          const keepAliveModuleName = tab.keepAliveModuleName;
          const tableName = tab.tableName;

          window.parent.R3.store.commit('global/tabCloseAppoint',
            {
              routeFullPath: fullPath, // 当前路由fullPath
              stopRouterPush: false, // 是否阻止默认跳转到前一个tab
              keepAliveModuleName, // 当前模块名称
              tableName, // 当前自定义表标识
              event() { }, // type:function;调用方法前执行的回调
            });
        }
      },
      // 改变搜索框默认提示文字
      changePlaceholder(value){
        if(value==='SOURCECODE'){
          this.placeholderText='请输入平台号'
        }else if(value==='INDEXORDERID'){
          this.placeholderText='请输入订单号'
        }else if(value==='RECEIVNAME'){
          this.placeholderText='请输入收货人'
        }else if(value==='RECEIVMOBILE'){
          this.placeholderText='请输入收货人手机号'
        }
      },
      // 回车搜索事件
      enterSearch(e){
        if (e.keyCode == 13) {
          this.btnsearchkey1()
        }
      },
      // 搜索按钮
      btnsearchkey1() {
        if (this.searchKeyVal) {
          let virtual={
            "id": 10883,
            "menu_type": "TABLE",
            "permission": "QUERY"
          }
        network.post('/p/cs/permission/has',virtual).then((res) => {
            if(!res.data){
            this.$Message.warning('该账号无权限,不能跳转');
          }else{
            let colId = '0';
            switch (this.searchcolumn) {
            case 'SOURCECODE':// 平台号
              colId = '196322'; // 195844
              break;
            case 'INDEXORDERID':// 订单号
              colId = '197393';
              break;
            case 'RECEIVNAME':// 收货人
              colId = '196256';
              break;
            case 'RECEIVMOBILE':// 收货人手机号
              colId = '196257';
              break;
            }
            const tableName = 'T_V_OMSONLINEORDER';
            // 1、先关闭打开的 Tab 页
            this.tabClose(tableName);
            // 2、再打开 Tab 页
            setTimeout(()=>{
              window.parent.R3.store.commit('global/tabOpen', {
                type: 'S',
                tableName,
                tableId: '10883',
                isSetQuery: true,
                queryData: {
                  values: [
                    {
                      display: 'text',
                      colid: colId,
                      defaultValue: this.searchKeyVal
                    },
                    {   // ORDERDATE(下单时间)
                      display: 'OBJ_DATE',
                      colid: '196269',
                      defaultValue:  null
                    },
                    {   // CREATIONDATE
                      display: 'OBJ_DATE',
                      colid: '195840',
                      defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                    },
                  ]
                }
              });
            }, 10);
         }
       })

        }else{
          this.$Modal.warning({
              title: '提示',
              content: '查询条件不能为空'
          });
        }

      },
      tabOrderaNewOpen(tableId,tableName,queryData) {
      let virtual={
        "id": tableId,
        "menu_type": "TABLE",
        "permission": "QUERY"
      }
       network.post('/p/cs/permission/has',virtual).then((res) => {
          if(!res.data){
           this.$Message.warning('该账号无权限,不能跳转');
         }else{
            // 1、先关闭已打开的"" Tab 页
            this.tabClose(tableName);
            // 2、再打开"" Tab 页
            setTimeout(function () {
              // queryData.values.push(
              //     {  // CREATIONDATE
              //       display: 'OBJ_DATE',
              //       colid: '195840',
              //       defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
              //     },
              // )
                window.parent.R3.store.commit('global/tabOpen', {
                    type: 'S',
                    tableName: tableName,
                    tableId: tableId,
                    isSetQuery: true,
                    queryData: queryData
                });
            }, 10);
         }
       })

    },
    /**
     * 打开"订单管理" Tab 页
     * @param queryData 查询条件传参
     */
    tabOrderManageOpen(queryData) {
      let virtual={
        "id": 10883,
        "menu_type": "TABLE",
        "permission": "QUERY"
      }
       network.post('/p/cs/permission/has',virtual).then((res) => {
          if(!res.data){
           this.$Message.warning('该账号无权限,不能跳转');
         }else{
            let tableName = 'T_V_OMSONLINEORDER';
            // 1、先关闭已打开的"订单管理" Tab 页
            this.tabClose(tableName);
            // 2、再打开"订单管理" Tab 页
            setTimeout(function () {
              if(!queryData.values.find(i=>i.colid==='196269')){
                queryData.values.push({   // ORDERDATE 下单时间
                    display: 'OBJ_DATE',
                    colid: '196269',
                    defaultValue: null
                });
              }
              queryData.values.push(
                  {  // CREATIONDATE
                    display: 'OBJ_DATE',
                    colid: '195840',
                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                  },
              )
                window.parent.R3.store.commit('global/tabOpen', {
                    type: 'S',
                    tableName: tableName,
                    tableId: '10883',
                    isSetQuery: true,
                    queryData: queryData
                });
            }, 10);
         }
       })

    },
    /**
     * 打开"平台商品管理" Tab 页
     * @param queryData 查询条件传参
     */
    tabPlatgoodsManageOpen(queryData) {
      let virtual={
        "id": 11031,
        "menu_type": "TABLE",
        "permission": "QUERY"
      }
       network.post('/p/cs/permission/has',virtual).then((res) => {
          if(!res.data){
           this.$Message.warning('该账号无权限,不能跳转');
         }else{
            let tableName = 'T_V_IESPLATFORMSKU';
            // 1、先关闭已打开的"平台商品管理" Tab 页
            this.tabClose(tableName);
            // 2、再打开"平台商品管理" Tab 页
            setTimeout(function () {
                window.parent.R3.store.commit('global/tabOpen', {
                    type: 'S',
                    tableName: tableName,
                    tableId: '11031',
                    isSetQuery: true,
                    queryData: queryData
                });
            }, 10);
         }
       })

    },
      //待办订单跳转路由
      BusRouter(obj) {
        console.log(obj)
        let virtual={}
        // console.log('跳转',obj)
        if (obj.number > 0) {
          var listTitle = obj.text;
          let queryData = undefined;
          let tableName = undefined;

        let threeMonthAgo = new Date();//三个月前时间
        threeMonthAgo.setMonth(new Date().getMonth() - 3);
        switch (obj.orderbiz) {
            case "OrderOutOfStock":// 订单缺货
                queryData = {
                    values: [
                        // 下单时间
                        {   // PAYTIME
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // ORDERSTATUS
                            display: 'select',
                            colid: '196249',
                            defaultValue: '2'
                        }
                    ]
                };
                this.tabOrderManageOpen(queryData);
                break;
            case "OrderPendingManualReview":// 订单待手审
                queryData = {
                    values: [
                        // 下单时间
                        {   // PAYTIME
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // ORDERSTATUS
                            display: 'select',
                            colid: '196249',
                            defaultValue: '1'
                        },
                        {   // AUTOAUDITSTATUS
                            display: 'select',
                            colid: '196297',
                            defaultValue: '2'
                        }
                    ]
                };
                this.tabOrderManageOpen(queryData);
                break;
            case "RefundOrderPendingManualReview":// 退单待审核
                queryData = {
                    values: [
                        {   // VIRSTATUS
                            display: 'select',
                            colid: '198144',
                            defaultValue: '30'
                        },
                        {
                          display: 'OBJ_DATE',
                          colid: '194145',
                          defaultValue: null
                        }
                    ]
                };
                this.tabRefundOrderOpen(queryData);
                break;
            case "TTHNOTSHIPPED":// 23H未发货
                queryData = {
                  tableId: '10883',//目标表ID
                  values: [//设置默认值的字段
                    {
                      display: 'OBJ_DATE',//设置的字段类型
                      colid: '196202',//设置的字段colid
                      // defaultValue: [Date.parse('1900-01-01 00:00:00'), new Date(new Date().getTime() - 23 * 60 * 60 * 1000)],//设置的字段默认值
                      defaultValue: [new Date().setMonth(new Date().getMonth() - 3), new Date(new Date().getTime() - 23 * 60 * 60 * 1000)]
                      // refobjid: '666666'//如果设置的字段的display为OBJ_FK（外键类型），则必须设置refobjid，refobjid会作为查询参数
                    },
                    {
                      display: 'OBJ_FK',
                      colid: '198043',
                      defaultValue: '京东,唯品会',
                      refobjid: '4,19'
                      // refobjid: '4,19'
                    },
                    {
                      display: 'select',
                      colid: '196249',
                      defaultValue: '21,50,1,2,3,4',
                    },
                    {   // PRESALESTATUS
                      display: 'text',
                      colid: '196327',
                      defaultValue: '0,10'
                    },
                    // {   // INTERCEPTION_CAUSE
                    //   display: 'OBJ_FK',
                    //   colid: '204289',
                    //   defaultValue: this.INTERCEPTION_CAUSEList.join(','),
                    //   refobjid: this.interceotionQuery.join(',')
                    // }
                  ]
                    // values: [
                    //     {   // PAYTIME
                    //         display: 'OBJ_DATE',
                    //         colid: '196202',
                    //         defaultValue: [Date.parse('1900-01-01 00:00:00'), new Date(new Date().getTime() - 23 * 60 * 60 * 1000)]
                    //     },
                    //     {   // PLATFORM
                    //         display: 'select',
                    //         colid: '198043',
                    //         defaultValue: '4,19'
                    //     },
                    //     {   // ORDERSTATUS
                    //         display: 'select',
                    //         colid: '196249',
                    //         defaultValue: '21,50,1,2,3,4'
                    //     }
                    // ]
                };
                this.tabOrderManageOpen(queryData);
                break;
            case "FSHNOTSHIPPED":// 47H未发货
                queryData = {
                    values: [
                        {   // PAYTIME
                            display: 'OBJ_DATE',
                            colid: '196202',
                            // defaultValue: [Date.parse('1900-01-01 00:00:00'), new Date(new Date().getTime() - 47 * 60 * 60 * 1000)]
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), new Date(new Date().getTime() - 47 * 60 * 60 * 1000)]
                        },
                        {   // ORDERSTATUS
                            display: 'select',
                            colid: '196249',
                            defaultValue: '21,50,1,2,3,4'
                        },
                        {   // PRESALESTATUS
                            display: 'text',
                            colid: '196327',
                            defaultValue: '0,10'
                        },
                        // {   // INTERCEPTION_CAUSE
                        //   display: 'OBJ_FK',
                        //   colid: '204289',
                        //   defaultValue: this.INTERCEPTION_CAUSEList.join(','),
                        //   refobjid: this.interceotionQuery.join(',')
                        // }
                    ]
                };
                this.tabOrderManageOpen(queryData);
                break;
            case "OverIssuedOrders":// 订单超发
                queryData = {
                    values: [
                        {   // PAYTIME
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // ORDERSTATUS
                            display: 'select',
                            colid: '196249',
                            defaultValue: ['4','5','6']
                        },
                        {   // EXCEEDSEND
                            display: 'select',
                            colid: '199328',
                            defaultValue: '1'
                        }
                    ]
                };
                this.tabOrderManageOpen(queryData);
                break;
            case "ORDER_REFUNDTOSTORE": // 订单拒收量
                queryData = {
                    values: [
                        {   // OBJ_DATE
                            display: 'OBJ_DATE',
                            colid: '194145',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // OBJ_DATE
                            display: 'OBJ_DATE',
                            colid: '172779',
                            defaultValue: null
                        },
                        {   // VIRSTATUS
                            display: 'OBJ_SELECT',
                            colid: '191127',
                            defaultValue: '1'
                        },
                        {   // VIRSTATUS
                            display: 'OBJ_SELECT',
                            colid: '198144',
                            defaultValue: '1,10,20,30,50'
                        },
                    ]
                };
                this.tabRefundOrderOpen(queryData);
                break;
            case "ORDER_NOTINTO": // 退单在途量
                queryData = {
                    values: [
                        {   // OBJ_DATE
                            display: 'OBJ_DATE',
                            colid: '194145',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // OBJ_DATE
                            display: 'OBJ_DATE',
                            colid: '172779',
                            defaultValue: null
                        },
                        {   // VIRSTATUS
                            display: 'OBJ_SELECT',
                            colid: '198144',
                            defaultValue: '10,20,30'
                        },
                        {   // INVENTEDSTATUS
                            display: 'OBJ_SELECT',
                            colid: '193667',
                            defaultValue: '1,2'
                        },
                    ]
                };
                this.tabRefundOrderOpen(queryData);
                break;
            case "ORDEREXCEPTION":// 异常订单
                queryData = {
                    values: [
                        {   // PAYTIME
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // ORDERSTATUS
                            display: 'select',
                            colid: '196249',
                            defaultValue: '1,2'
                        },
                        {   // EXCEEDSEND
                            display: 'select',
                            colid: '204399',
                            defaultValue: '1'
                        },
                        // {
                        //   display: 'OBJ_DATE',//设置的字段类型
                        //   colid: '196202',//设置的字段colid
                        //   defaultValue: [Date.parse('2022-10-03 00:00:00'),Date.parse('2022-10-10 23:59:59')],//设置的字段默认值
                        //   // refobjid: '666666'//如果设置的字段的display为OBJ_FK（外键类型），则必须设置refobjid，refobjid会作为查询参数
                        // },
                    ]
                };
                this.tabOrderManageOpen(queryData);
                break;
            case "CancelDeliveryFailed":// 取消配货失败
                queryData = {
                    values: [
                        {   // PAYTIME
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // ORDERSTATUS
                            display: 'select',
                            colid: '196249',
                            defaultValue: '4'
                        },
                        {   // WMSCANCELSTATUS
                            display: 'select',
                            colid: '196232',
                            defaultValue: '2'
                        }
                    ]
                };
                this.tabOrderManageOpen(queryData);
                break;
            case "PlatformDeliveryFailed":// 平台发货失败
                this.validPermissionAndJump(11397, () => {
                  this.tabClose('V_OMS_PLATDELIVERYFAILUREORDER')
                  window.parent.R3.store.commit('global/tabOpen', {
                    type: 'S',
                    tableName: 'V_OMS_PLATDELIVERYFAILUREORDER',
                    tableId: '11397',
                    isSetQuery: true,
                    queryData: {
                        values: [
                            // 订单出库时间
                            {
                              display: 'OBJ_DATE',
                              colid: '201079',
                              defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                            },
                            { // 返回信息
                              display: 'STRING',
                              colid: '203424',
                              defaultValue: "is not null"
                            },
                        ]
                    }
                  });
                })
                break;
            case "RefundOrderNotificationFailed":// 退单通知失败
                queryData = {
                    values: [
                        {   // VIRSTATUS
                            display: 'select',
                            colid: '198144',
                            defaultValue: '10,20'
                        },
                        {   // ISTOWMS
                            display: 'select',
                            colid: '192168',
                            defaultValue: '2'
                        },
                        {
                          display: 'OBJ_DATE',
                          colid: '194145',
                          defaultValue: null
                        }
                    ]
                };
                this.tabRefundOrderOpen(queryData);
                break;
            case "IESPLATFORMSKU_FAIL":// 库存同步失败
                queryData = {
                    values: [
                        {   // LASTNEEDTIME
                            display: 'OBJ_DATE',
                            colid: '198206',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        {   // ISTOWMS
                            display: 'OBJ_SELECT',
                            colid: '198208',
                            defaultValue: '3'
                        },
                        // 是否同步库存
                        {
                            display: 'OBJ_SELECT',
                            colid: '198196',
                            defaultValue: '1'
                        }
                    ]
                };
                this.tabPlatgoodsManageOpen(queryData);
                break;
            
             case "OTBOUTSTORAGEERROR":// 平台B2B业务中间表
                queryData = {
                    values: [
                        // {   // LASTNEEDTIME
                        //     display: 'OBJ_DATE',
                        //     colid: '201985',
                        //     defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        // },
                        // 是否同步库存
                        {
                            display: 'OBJ_SELECT',
                            colid: '194280',
                            defaultValue: '1'
                        },
                         {
                            display: 'OBJ_SELECT',
                            colid: '192307',
                            defaultValue: '0'
                        },
                         {
                            display: 'OBJ_SELECT',
                            colid: '210665',
                            defaultValue: '1'
                        },{   // LASTNEEDTIME
                            display: 'OBJ_DATE',
                            colid: '194281',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                    ]
                };
                this.tabOrderaNewOpen(10601,'T_OTBOUTSTORAGE',queryData);
                break;
            case "OMSAPILOGISTICSSENDERROR":// 配货回传失败 WMS回传失败
                queryData = {
                    values: [
                        {   // LASTNEEDTIME
                            display: 'OBJ_DATE',
                            colid: '201985',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        // 是否同步库存
                        {
                            display: 'OBJ_SELECT',
                            colid: '201991',
                            defaultValue: '1'
                        }
                    ]
                };
                this.tabOrderaNewOpen(11442,'T_OMSAPILOGISTICSSEND',queryData);
                break;
             case "WINGBSORETSERROR":// 配货回传失败 云仓回传失败
                queryData = {
                    values: [
                        {   // LASTNEEDTIME
                            display: 'OBJ_DATE',
                            colid: '201370',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                        },
                        // 是否同步库存
                        {
                            display: 'OBJ_SELECT',
                            colid: '201379',
                            defaultValue: '0'
                        }
                    ]
                };
                this.tabOrderaNewOpen(11412,'WING_BSO_RETS',queryData);
                break;
            case "ProductMaintenanceError_com"://通用平台
             virtual={
                "id": 10673,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  // 通用订单跳转
                  tableName = 'T_V_OMSSTANDPLATORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10673',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // PAY_TIME 付款时间
                                      display: 'OBJ_DATE',
                                      colid: '192480',
                                      defaultValue: null
                                  },
                                  {   // HASWRONGITEM
                                      display: 'select',
                                      colid: '199331',
                                      defaultValue: '1'
                                  },
                                  {   // istrans
                                      display: 'select',
                                      colid: '199331',
                                      defaultValue: '1'
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '193975',
                                      defaultValue: '0,1'
                                  },
                                  {  // CREATIONDATE
                                    display: 'OBJ_DATE',
                                    colid: '173572',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                                   { //VIRSTATUS
                                    display: 'text',
                                    colid: '198056',
                                    defaultValue: 'WAIT_SELLER_SEND_GOODS'
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })

              break;
            case "ProductMaintenanceError_taobao"://淘宝
             virtual={
                "id": 10598,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝订单跳转
                  tableName = 'T_V_OMSTAOBAOORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10598',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // 付款时间
                                      display: 'OBJ_DATE',
                                      colid: '193653',
                                      defaultValue: null
                                  },
                                  {   // CREATED 交易创建时间
                                      display: 'OBJ_DATE',
                                      colid: '191622',
                                      defaultValue: null
                                  },
                                  {   // HASWRONGITEM
                                      display: 'select',
                                      colid: '199329',
                                      defaultValue: '1'
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '192140',
                                      defaultValue: '0,1'
                                  },
                                  {  // CREATIONDATE
                                    display: 'OBJ_DATE',
                                    colid: '172597',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                                  { //VIRSTATUS
                                    display: 'text',
                                    colid: '198046',
                                    defaultValue: 'WAIT_SELLER_SEND_GOODS'
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "ProductMaintenanceError_tbfx"://淘宝分销
              virtual={
                "id": 10633,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝分销订单跳转
                  tableName = 'T_V_OMSFENXIAOORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10633',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // PAY_TIME 付款时间
                                      display: 'OBJ_DATE',
                                      colid: '191076',
                                      defaultValue: null
                                  },
                                  {   // HASWRONGITEM
                                      display: 'select',
                                      colid: '199332',
                                      defaultValue: '1'
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '191612',
                                      defaultValue: '0,1'
                                  },
                                  {  // CREATIONDATE
                                    display: 'OBJ_DATE',
                                    colid: '173052',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                                  { //VIRSTATUS
                                    display: 'text',
                                    colid: '198054',
                                    defaultValue: 'WAIT_SELLER_SEND_GOODS'
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })

                break;
            case "ProductMaintenanceError_tbjx"://淘宝经销
              virtual={
                "id": 10762,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                   //淘宝经销跳转
                  tableName = 'T_OMSJINGXIAOORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10762',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // PAY_TIME 支付时间
                                      display: 'OBJ_DATE',
                                      colid: '191415',
                                      defaultValue: null
                                  },
                                  {   // HASWRONGITEM
                                      display: 'select',
                                      colid: '199333',
                                      defaultValue: '1'
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '192452',
                                      defaultValue: '0,1'
                                  },
                                  {  // CREATIONDATE
                                    display: 'OBJ_DATE',
                                    colid: '174729',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                                  { //ORDER_STATUS
                                    display: 'text',
                                    colid: '193943',
                                    defaultValue: 'WAIT_SELLER_SEND_GOODS'
                                  },
                                  {   // 审核时间
                                      display: 'OBJ_DATE',
                                      colid: '192947',
                                      defaultValue: null
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })

              break;
            case "ProductMaintenanceError_jd"://京东
              virtual={
                "id": 10634,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //京东跳转
                  tableName = 'T_OMSJINGDONGORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10634',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // ORDER_START_TIME 下单时间
                                      display: 'OBJ_DATE',
                                      colid: '194537',
                                      defaultValue: null
                                  },
                                  {   // HASWRONGITEM
                                      display: 'select',
                                      colid: '199330',
                                      defaultValue: '1'
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '194536',
                                      defaultValue: '0,1'
                                  },
                                  {  // CREATIONDATE
                                    display: 'OBJ_DATE',
                                    colid: '173065',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                                  { //ORDER_STATE
                                    display: 'text',
                                    colid: '192561',
                                    defaultValue: 'WAIT_SELLER_STOCK_OUT'
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
                break;
            case "REFUNDDETAIL_TB": // 淘宝退款
              virtual={
                "id": 10574,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝退款
                  tableName = 'T_V_OMSTAOBAOREFUND';
                  // 1、先关闭已打开的"淘宝退款" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"淘宝退款" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10574',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // AUTOREFUNDSTATUS
                                      display: 'OBJ_SELECT',
                                      colid: '204933',
                                      defaultValue: '2,3'
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '192151',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "REFUNDDETAIL_JDZJ": // 京东发货前退款
              virtual={
                "id": 11345,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝退款
                  tableName = 'T_OMSJDPOPAFSREFUNDAPPLY';
                  // 1、先关闭已打开的"淘宝退款" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"淘宝退款" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '11345',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // SYN_RESULT
                                      display: 'OBJ_SELECT',
                                      colid: '200201',
                                      defaultValue: '2,3'
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '200192',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "ORDER_TB": // 淘宝订单
              virtual={
                "id": 10598,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝订单跳转
                  tableName = 'T_V_OMSTAOBAOORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10598',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // CREATED 交易创建时间
                                      display: 'OBJ_DATE',
                                      colid: '191622',
                                      defaultValue: null
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '192140',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '191620',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '193653',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "ORDER_JD": // 京东订单
              virtual={
                "id": 10634,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //京东跳转
                  tableName = 'T_OMSJINGDONGORDER';
                  // 1、先关闭已打开的"京东订单" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"京东订单" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10634',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // CREATED 交易创建时间
                                      display: 'OBJ_DATE',
                                      colid: '194537',
                                      defaultValue: null
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '194536',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '192560',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '191553',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "ORDER_TY": // 通用订单
              virtual={
                "id": 10673,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  // 通用订单跳转
                  tableName = 'T_V_OMSSTANDPLATORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10673',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '193975',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '193976',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '192480',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "ORDER_TBFX": // 淘宝分销订单
              virtual={
                "id": 10633,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  // 通用订单跳转
                  tableName = 'T_V_OMSFENXIAOORDER';
                  // 1、先关闭已打开的"淘宝分销订单" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"淘宝分销订单" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10633',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '192947',
                                    defaultValue: null
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '191612',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '194615',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '191076',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "ORDER_TBJX"://淘宝经销订单
              virtual={
                "id": 10762,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                   //淘宝经销跳转
                  tableName = 'T_OMSJINGXIAOORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10762',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '192947',
                                    defaultValue: null
                                  },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '192452',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '192950',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '191415',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "ORDER_VIP": // JITX订单
            virtual={
                "id": 10685,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                   //JITX订单跳转
                  tableName = 'T_OMSJITXORDER';
                  // 1、先关闭已打开的"订单管理" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"订单管理" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10685',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  // { //PAY_TIME
                                  //   display: 'OBJ_DATE',
                                  //   colid: '192947',
                                  //   defaultValue: null
                                  // },
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '191242',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '201839',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '191240',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "REFUNDORDER_TB": // 退单转换失败淘宝退款
              virtual={
                "id": 10574,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝退款
                  tableName = 'T_V_OMSTAOBAOREFUND';
                  // 1、先关闭已打开的"淘宝退款" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"淘宝退款" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10574',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '193659',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '192150',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '192151',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "REFUNDORDER_JD": // 退单转换失败京东退货
              virtual={
                "id": 10739,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝退款
                  tableName = 'T_OMS_JD_REFUND';
                  // 1、先关闭已打开的"淘宝退款" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"淘宝退款" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10739',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '193591',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '192080',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '194547',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "REFUNDORDER_TY": // 退单转换失败通用退款
              virtual={
                "id": 10650,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝退款
                  tableName = 'T_OMSSTANDPLATREFUND';
                  // 1、先关闭已打开的"淘宝退款" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"淘宝退款" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10650',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '192354',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '192847',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '173273',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
            case "REFUNDORDER_TBFX": // 退单转换失败淘宝分销退款
              virtual={
                "id": 10575,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else{
                  //淘宝退款
                  tableName = 'T_OMSFENXIAOREFUND';
                  // 1、先关闭已打开的"淘宝退款" Tab 页
                  this.tabClose(tableName);
                  // 2、再打开"淘宝退款" Tab 页
                  setTimeout(function () {
                      window.parent.R3.store.commit('global/tabOpen', {
                          type: 'S',
                          tableName: tableName,
                          tableId: '10575',
                          isSetQuery: true,
                          queryData: {
                              values: [
                                  {   // ISTRANS
                                      display: 'select',
                                      colid: '191019',
                                      defaultValue: '0'
                                  },
                                  { //SYSREMARK
                                    display: 'STRING',
                                    colid: '193112',
                                    defaultValue: "is not null"
                                  },
                                  { //PAY_TIME
                                    display: 'OBJ_DATE',
                                    colid: '193610',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                              ]
                          }
                      });
                  }, 10);
                }
              })
              break;
          case 'DELIVERY_TIMELINESS': // 超时发货---普通订单
            this.tabClose('T_V_OMSONLINEORDER');
            window.parent.R3.store.commit('global/tabOpen', {
                  type: 'S',
                  tableName: 'T_V_OMSONLINEORDER',
                  tableId: '10883',
                  isSetQuery: true,
                  queryData: {
                      values: [
                          // 下单时间
                          {
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                          },
                          // 是否超时
                          {
                              display: 'OBJ_SELECT',
                              colid: '208518',
                              defaultValue: ['1'] // 超时
                          },
                          // 定金预售状态
                          // {
                          //     display: 'OBJ_SELECT',
                          //     colid: '196327',
                          //     defaultValue: ["10","0"] // 尾款已付或非预售
                          // },
                          // 订单标识
                          {
                              display: 'SelectExclusive',
                              colid: '201341', // 预售拦截标记的id
                              colname: 'PREISINTERECEPT',
                              exclude: true,
                              defaultValue: '10', // 排除预售拦
                          },
                          {
                              display: 'SelectExclusive',
                              colid: '201341', // 预售拦截标记的id
                              colname: 'PREISINTERECEPT',
                              exclude: true,
                              defaultValue: '20', // 排除预售
                          },
                          {
                            display: 'SelectExclusive',
                            colid: '196323', // 预售拦截标记的id
                            colname: 'PRESALESTATUS', // PRESALESTATUS
                            exclude: true,
                            defaultValue: '10', // 尾款已付
                          },
                          {
                            display: 'SelectExclusive',
                            colid: '196323', // 预售拦截标记的id
                            colname: 'PRESALESTATUS', // PRESALESTATUS
                            exclude: true,
                            defaultValue: '20', // 尾款未付
                          },
                      ]
                  }
              });
            break;
          case 'DELIVERY_TIMELINESS_DEPOSIT_PRESALE': // 超时发货---定金预售订单
            this.tabClose('T_V_OMSONLINEORDER');
            window.parent.R3.store.commit('global/tabOpen', {
                  type: 'S',
                  tableName: 'T_V_OMSONLINEORDER',
                  tableId: '10883',
                  isSetQuery: true,
                  queryData: {
                      values: [
                          // 下单时间
                          {
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                          },
                          // 是否超时
                          {
                              display: 'OBJ_SELECT',
                              colid: '208518',
                              defaultValue: ['1'] // 超时
                          },
                          // 定金预售状态
                          // {
                          //     display: 'OBJ_SELECT',
                          //     colid: '196327',
                          //     defaultValue: ["10","0"] // 尾款已付或非预售
                          // },
                          // 订单标识
                          // {
                          //     display: 'SelectExclusive',
                          //     colid: '201341', // 预售拦截标记的id
                          //     colname: 'PREISINTERECEPT',
                          //     exclude: true,
                          //     defaultValue: '10', // 排除预售拦
                          // },
                          {
                              display: 'SelectExclusive',
                              colid: '201341', // 预售拦截标记的id
                              colname: 'PREISINTERECEPT',
                              exclude: true,
                              defaultValue: '10', // 排除预售拦
                          },
                          {
                              display: 'SelectExclusive',
                              colid: '201341', // 预售拦截标记的id
                              colname: 'PREISINTERECEPT',
                              exclude: true,
                              defaultValue: '20', // 排除预售
                          },
                          {
                            display: 'SelectExclusive',
                            colid: '196323', // 预售拦截标记的id
                            colname: 'PRESALESTATUS', // PRESALESTATUS
                            defaultValue: '10', // 尾款已付
                          },
                      ]
                  }
              });
            break;
          case 'DELIVERY_TIMELINESS_FULL_AMOUNT_PRESALE': // 超时发货预警---全款预售订单
            this.tabClose('T_V_OMSONLINEORDER');
            window.parent.R3.store.commit('global/tabOpen', {
                  type: 'S',
                  tableName: 'T_V_OMSONLINEORDER',
                  tableId: '10883',
                  isSetQuery: true,
                  queryData: {
                      values: [
                          // 下单时间
                          {
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                          },
                          // 是否超时
                          {
                              display: 'OBJ_SELECT',
                              colid: '208518',
                              defaultValue: ['1'] // 超时
                          },
                          // 定金预售状态
                          // {
                          //     display: 'OBJ_SELECT',
                          //     colid: '196327',
                          //     defaultValue: ["10","0"] // 尾款已付或非预售
                          // },
                          // 订单标识
                          // {
                          //     display: 'SelectExclusive',
                          //     colid: '201341', // 预售拦截标记的id
                          //     colname: 'PREISINTERECEPT',
                          //     exclude: true,
                          //     defaultValue: '10', // 排除预售拦
                          // },
                          {
                              display: 'SelectExclusive',
                              colid: '201341', // 预售拦截标记的id
                              colname: 'PREISINTERECEPT',
                              defaultValue: '10', // 排除预售拦
                          },
                          {
                              display: 'SelectExclusive',
                              colid: '201341', // 预售拦截标记的id
                              colname: 'PREISINTERECEPT',
                              defaultValue: '20', // 排除预售
                          },
                          {
                            display: 'SelectExclusive',
                            colid: '196323', // 预售拦截标记的id
                            colname: 'PRESALESTATUS', // PRESALESTATUS
                            exclude: true,
                            defaultValue: '20', // 尾款未付
                          },
                      ]
                  }
              });
            break;
          case 'REFUND_NOTIN_STOCK_TIMEOUT': // 退单超时未入库
            network.post('/p/cs/permission/has',{
                "id": 10612,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }).then(res => {
                if(!res.data){
                  this.$Message.warning('该账号无权限,不能跳转');
                }else {
                  this.tabClose('T_V_OMSREFUNDORDERALL');
                  window.parent.R3.store.commit('global/tabOpen', {
                      type: 'S',
                      tableName: 'T_V_OMSREFUNDORDERALL',
                      tableId: '10612',
                      isSetQuery: true,
                      queryData: {
                          values: [
                              {   // 超时未入库
                                  display: 'OBJ_SELECT',
                                  colid: '208671',
                                  defaultValue: ['1']
                              },
                              { // 下单时间
                                display: 'OBJ_DATE',
                                colid: '194145',
                                defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                              },
                          ]
                      }
                  });
                }
              })
            break;
          case 'ORDER_TO_ERP': // 传ERP异常订单-零售传入失败
            this.validPermissionAndJump(11392, () => {
              network.post('/p/cs/newQueryList', urlSearchParams({
                  searchdata: {
                    isdroplistsearch: true,
                    refcolid: 196275,
                    range: 1000,
                    startindex: 0
                  }
              })).then(res => {
                  if(res.data.code === 0) {
                    const data = res.data.data.row
                    // 捞出所有实体仓
                    const ids = data.filter(item=>item.WAREHOUSETYPE.refobjval===0).map(item => item.ID.val)
                    const names = data.filter(item=>item.WAREHOUSETYPE.refobjval===0).map(item => item.WAREHOUSENAME.val).join(',')
                    this.tabClose('T_V_OTBONLINEORDERALL')
                    window.parent.R3.store.commit('global/tabOpen', {
                        type: 'S',
                        tableName: 'T_V_OTBONLINEORDERALL',
                        tableId: '11392',
                        isSetQuery: true,
                        queryData: {
                            values: [
                                  {   // 是否传入分销日期
                                      display: 'OBJ_SELECT',
                                      colid: '200957',
                                      defaultValue: ["0","10"]
                                  },
                                  { // 创建时间
                                    display: 'OBJ_DATE',
                                    colid: '200883',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                  },
                                  {   // 发货仓库
                                      display: 'OBJ_FK',
                                      colid: '200952',
                                      defaultValue: names,
                                      refobjid: ids
                                  },

                            ]
                        }
                    });
                  }
              })
            })
            break;
          case 'ORDER_TO_ERP_GENFAIL': // 传ERP异常订单-零售生成失败
            this.validPermissionAndJump(11392, () => {
              network.post('/p/cs/newQueryList', urlSearchParams({
                  searchdata: {
                    isdroplistsearch: true,
                    refcolid: 196275,
                    range: 1000,
                    startindex: 0
                  }
              })).then(res => {
                  if(res.data.code === 0) {
                    const data = res.data.data.row
                    // 捞出所有门店实体仓
                    const ids = data.filter(item=>item.WAREHOUSETYPE.refobjval===0).map(item => item.ID.val)
                    const names = data.filter(item=>item.WAREHOUSETYPE.refobjval===0).map(item => item.WAREHOUSENAME.val).join(',')
                    this.tabClose('T_V_OTBONLINEORDERALL')
                    window.parent.R3.store.commit('global/tabOpen', {
                        type: 'S',
                        tableName: 'T_V_OTBONLINEORDERALL',
                        tableId: '11392',
                        isSetQuery: true,
                        queryData: {
                            values: [
                                  {   // 是否生成零售
                                      display: 'OBJ_SELECT',
                                      colid: '208238',
                                      defaultValue: ["0","2"]
                                  },
                                  {   // 是否传入分销日期
                                      display: 'OBJ_SELECT',
                                      colid: '200957',
                                      defaultValue: ["1"]
                                  },
                                  { // 创建时间
                                    display: 'OBJ_DATE',
                                    colid: '200883',
                                    defaultValue: [new Date().setMonth(new Date().getMonth() - 1), Date.now()]
                                  },
                                  {   // 发货仓库
                                      display: 'OBJ_FK',
                                      colid: '200952',
                                      defaultValue: names,
                                      refobjid: ids
                                  },

                            ]
                        }
                    });
                  }
              })
            })
            break;
          case 'REFUNDORDER_TO_ERP': // 传ERP异常退单-零售传入失败
            this.validPermissionAndJump(11394, () => {
              this.tabClose('T_V_OTBREFUNDORDER')
              window.parent.R3.store.commit('global/tabOpen', {
                    type: 'S',
                    tableName: 'T_V_OTBREFUNDORDER',
                    tableId: '11394',
                    isSetQuery: true,
                    queryData: {
                        values: [
                            {   // 是否传入分销日期
                                display: 'OBJ_SELECT',
                                colid: '201004',
                                defaultValue: ["0","10"]
                            },
                            { // 创建时间
                              display: 'OBJ_DATE',
                              colid: '200909',
                              defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                            },

                        ]
                    }
                });
            })
            break;
          case 'REFUNDORDER_TO_ERP_GENFAIL': // 传ERP异常退单-零售生成失败
            this.validPermissionAndJump(11394, () => {
              this.tabClose('T_V_OTBREFUNDORDER')
                    window.parent.R3.store.commit('global/tabOpen', {
                        type: 'S',
                        tableName: 'T_V_OTBREFUNDORDER',
                        tableId: '11394',
                        isSetQuery: true,
                        queryData: {
                            values: [
                            {   // 是否生成零售
                                display: 'OBJ_SELECT',
                                colid: '208239',
                                defaultValue: ["0","2"]
                            },
                            {   // 是否传入分销日期
                                display: 'OBJ_SELECT',
                                colid: '201004',
                                defaultValue: ["1"]
                            },
                            { // 创建时间
                              display: 'OBJ_DATE',
                              colid: '200909',
                              defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                            }

                            ]
                        }
                    });
            })
            break;
          case "NOTIFYDELIVERYFAILED":// 通知配货失败-通知WMS失败
              queryData = {
                  values: [
                      {   // PAYTIME
                          display: 'OBJ_DATE',
                          colid: '196269',
                          defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                      },
                      {   // ORDERSTATUS
                          display: 'select',
                          colid: '196249',
                          defaultValue: '3'
                      },
                      {   // ISTOWMS
                          display: 'select',
                          colid: '196292',
                          defaultValue: '2'
                      }
                  ]
              };
              this.tabOrderManageOpen(queryData);
              break;
           case "NOTIFYERPFAILED": // 通知配货失败-通知云仓失败
            this.validPermissionAndJump(10883, () => {
                this.tabClose('T_V_OMSONLINEORDER')
                window.parent.R3.store.commit('global/tabOpen', {
                        type: 'S',
                        tableName: 'T_V_OMSONLINEORDER',
                        tableId: '10883',
                        isSetQuery: true,
                        queryData: {
                            values: [
                              {   // 是否传入到分销
                                  display: 'OBJ_SELECT',
                                  colid: '196242',
                                  defaultValue: ["10"] // 否
                              },
                                {   // 状态
                                    display: 'OBJ_SELECT',
                                    colid: '196249',
                                    defaultValue: ["3"] // 已审核
                                },
                                { // 下单时间
                                  display: 'OBJ_DATE',
                                  colid: '196269',
                                  defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                },

                            ]
                        }
                    });
                })
              break;
          case "ERPGENFAILED": // // 通知配货失败-云仓生成失败
            this.validPermissionAndJump(10883, () => {
              network.post('/p/cs/newQueryList', urlSearchParams({
                  searchdata: {
                    isdroplistsearch: true,
                    refcolid: 196275,
                    range: 1000,
                    startindex: 0
                  }
                })).then(res => {
                  if(res.data.code === 0) {
                    const data = res.data.data.row
                    // 捞出所有门店实体仓
                    const ids = data.filter(item=>item.WAREHOUSETYPE.refobjval===1).map(item => item.ID.val)
                    const names = data.filter(item=>item.WAREHOUSETYPE.refobjval===1).map(item => item.WAREHOUSENAME.val).join(',')
                    this.tabClose('T_V_OMSONLINEORDER')
                    window.parent.R3.store.commit('global/tabOpen', {
                        type: 'S',
                        tableName: 'T_V_OMSONLINEORDER',
                        tableId: '10883',
                        isSetQuery: true,
                        queryData: {
                            values: [
                                {   // 线下云仓是否生成
                                  display: 'OBJ_SELECT',// 下拉框
                                  colid: '204320', // 列ID
                                  defaultValue: ["0"] // 否
                                },
                                {   // 状态
                                  display: 'OBJ_SELECT',
                                  colid: '196249',
                                  defaultValue: ["4"] // 配货中
                                },
                                {   // 撤回状态
                                  display: 'OBJ_SELECT',
                                  colid: '196232',
                                  defaultValue: ["0", "2"] // 未撤回和撤回失败
                                },
                                {   // 发货仓库
                                  display: 'OBJ_FK',
                                  colid: '196275',
                                  defaultValue: names,
                                  refobjid: ids
                                },
                                { // 下单时间
                                  display: 'OBJ_DATE',
                                  colid: '196269',
                                  defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                                },

                            ]
                        }
                    });
                  }
                })
              })
              break;
            case 'PRESALESENDREMIND': // 预售发货提醒
              this.validPermissionAndJump(10883, () => {
                this.tabClose('T_V_OMSONLINEORDER')
                window.parent.R3.store.commit('global/tabOpen', {
                  type: 'S',
                  tableName: 'T_V_OMSONLINEORDER',
                  tableId: '10883',
                  isSetQuery: true,
                  queryData: {
                      values: [
                          // 下单时间
                          {
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                          },
                          // 是否预警超时
                          {
                              display: 'OBJ_SELECT',
                              colid: '208935',
                              defaultValue: ['1'] // 是
                          },
                          // 订单状态
                          {
                              display: 'OBJ_SELECT',
                              colid: '196249',
                              defaultValue: ['1','50','2','3','4'] // 待分配、未确认、缺货、已审核、配货中
                          },
                          // // 付款时间
                          // {
                          //   display: 'OBJ_DATE',
                          //   colid: '196202',
                          //   defaultValue: [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                          // },
                          // // 订单标识
                          // {
                          //   display: 'SelectExclusive',
                          //   colid: '201341', // 预售拦截标记的id
                          //   colname: 'PREISINTERECEPT',
                          //   defaultValue: '10' // 预售拦
                          // },
                          // {
                          //   display: 'SelectExclusive',
                          //   colid: '196323', // 预售拦截标记的id
                          //   colname: 'HASPRESALESKU',
                          //   defaultValue: '1' // 全款预售
                          // },
                      ]
                  }
                });
              })
          case 'NOTSHIPPED_DFP': // 未发货订单--待分配
            queryData = {
              values: [
                // 下单时间
                {
                  display: 'OBJ_DATE',
                  colid: '196269',
                  defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                },
                // 订单状态
                {
                  display: 'OBJ_SELECT',
                  colid: '196249',
                  defaultValue: ['50'] // 待分配、未确认、缺货、已审核、配货中 '50','1','2','3','4'
                },
              ]
            };
            this.tabOrderManageOpen(queryData);
            break;
          case 'NOTSHIPPED_WQR': // 未发货订单--未确认
            queryData = {
              values: [
                // 下单时间
                {
                  display: 'OBJ_DATE',
                  colid: '196269',
                  defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                },
                // 订单状态
                {
                  display: 'OBJ_SELECT',
                  colid: '196249',
                  defaultValue: ['1'] // 待分配、未确认、缺货、已审核、配货中 '50','1','2','3','4'
                },
              ]
            };
            this.tabOrderManageOpen(queryData);
            break;
          case 'NOTSHIPPED_QH': // 未发货订单--缺货
            queryData = {
              values: [
                // 下单时间
                {
                  display: 'OBJ_DATE',
                  colid: '196269',
                  defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                },
                // 订单状态
                {
                  display: 'OBJ_SELECT',
                  colid: '196249',
                  defaultValue: ['2'] // 待分配、未确认、缺货、已审核、配货中 '50','1','2','3','4'
                },
              ]
            };
            this.tabOrderManageOpen(queryData);
            break;
          case 'NOTSHIPPED_YSH': // 未发货订单--已审核
            queryData = {
              values: [
                // 下单时间
                {
                  display: 'OBJ_DATE',
                  colid: '196269',
                  defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                },
                // 订单状态
                {
                  display: 'OBJ_SELECT',
                  colid: '196249',
                  defaultValue: ['3'] // 待分配、未确认、缺货、已审核、配货中 '50','1','2','3','4'
                },
              ]
            };
            this.tabOrderManageOpen(queryData);
            break;
          case 'NOTSHIPPED_PHZ': // 未发货订单--配货中
            queryData = {
              values: [
                // 下单时间
                {
                  display: 'OBJ_DATE',
                  colid: '196269',
                  defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                },
                // 订单状态
                {
                  display: 'OBJ_SELECT',
                  colid: '196249',
                  defaultValue: ['4'] // 待分配、未确认、缺货、已审核、配货中 '50','1','2','3','4'
                },
              ]
            };
            this.tabOrderManageOpen(queryData);
            break;
          case 'CHANGEADDRESSFAILED': // 改地址失败
            this.validPermissionAndJump(10883, () => {
              this.tabOpen({
                  type: 'S',
                  tableName: 'T_V_OMSONLINEORDER',
                  tableId: '10883',
                  isSetQuery: true,
                  queryData: {
                      values: [
                          // 下单时间
                          {
                            display: 'OBJ_DATE',
                            colid: '196269',
                            defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                          },
                          // 改地址状态
                          {
                              display: 'OBJ_SELECT',
                              colid: '207847',
                              defaultValue: ['2'] // 失败
                          },
                          // 状态
                          {
                              display: 'OBJ_SELECT',
                              colid: '196249',
                              defaultValue: ['1','2','3','4','50'] // 失败
                          },
                      ]
                  }
                })
              })
              break;
            case 'REFUNDDETAIL_TY': // 通用退款
              this.validPermissionAndJump(10650, () => {
                this.tabOpen({
                    type: 'S',
                    tableName: 'T_OMSSTANDPLATREFUND',
                    tableId: '10883',
                    isSetQuery: true,
                    label: '通用退款',
                    queryData: {
                        values: [
                            // 创建时间
                            {
                              display: 'OBJ_DATE',
                              colid: '173273',
                              defaultValue:  [new Date().setMonth(new Date().getMonth() - 3), Date.now()]
                            },
                            // 自动售后结果=失败、请求失败
                            {
                                display: 'OBJ_SELECT',
                                colid: '200121',
                                defaultValue: ['2','3']
                            },
                        ]
                    }
                  })
              })
              break;
          }
        }
      },

      tabOpen(params) {
        this.tabClose(params.tableName);
        setTimeout(() => {
          window.parent.R3.store.commit('global/tabOpen', params);
        }, 10)
      },

      // 校验权限并跳转
      validPermissionAndJump(tableId, callback) {
        network.post('/p/cs/permission/has',{
            "id": tableId,
            "menu_type": "TABLE",
            "permission": "QUERY"
          }).then(res => {
            if(!res.data){
              this.$Message.warning('该账号无权限,不能跳转');
            } else {
              callback()
            }
          })
      },

      // 畅销商品选择时间 对应表格
      getActive(index,num){
        this.SellIsActive=index
        this.SellIsActiveNum=num
        this.SellcurrentPage=1
        this.getAllbestSellData()
      },
     // 获取畅销商品全部表格数据
      getAllbestSellData(){
        var pageIndex=(this.SellcurrentPage-1)*7+1
        network.post('/p/cs/getReportPopularGoodsRank', {pageIndex:pageIndex, pageSize: 42, timeType:  this.SellIsActiveNum}).then((res) => {
            if(res.data.Code==0){
              if(res.data.Rows.length<42){
                this.SellTotal=res.data.Rows.length
              }else{
                this.SellTotal=42
              }
                this.AllbestSellData=res.data.Rows
                this.getANowbestSellData()
                const userInfo = JSON.parse(window.localStorage.getItem('userInfo'))
                this.AD_CLIENT_NAME=userInfo ? userInfo.ename : '' //获取登录用户名称
            }
        })
      },
      //获取畅销商品当前页表格数据
      getANowbestSellData(){
       this.bestSellData=this.AllbestSellData.slice((this.SellcurrentPage-1)*7, (this.SellcurrentPage-1)*7+7)
      },
      // 页码改变时触发
      changePage(val) {
        this.SellcurrentPage = val;
        this.getANowbestSellData();
      },
      //畅销商品表格跳转
      jumpBestSell(data, index, e){
        const loop = 2 /// 最多循环两次
        let count = 0
        let dom = e.target
        let column = dom.dataset.column
        while(!column && count < loop) {
          dom = dom.parentElement
          column = dom.dataset.column
          count++
        }
        console.log("🚀 ~ 列", column)
        if(column !== 'TITLE') {
          return
        }

        let bizid= data.IESPRODUCTID
        this.activeinfo(bizid,'goods')
      },
      //活动、商品列表明细
      activeinfo(bizid, title) {
          let virtual={}
          let tableName = undefined;
          if (title == "active") {
            virtual={
                "id": 10776,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                  if(!res.data){
                    this.$Message.warning('该账号无权限,不能跳转');
                  }else{
                    tableName = 'OMSACTIVEUPDATE';
                    // 1、先关闭
                    this.tabClose(tableName);
                    // 2、再打开
                    setTimeout(function () {
                        // window.parent.R3.store.commit('global/tabOpen', {
                        //     type : 'tableDetailAction'||'C',
                        //     customizedModuleName: tableName,
                        //     customizedModuleId: bizid
                        // });
                        window.parent.R3.store.commit('global/tabOpen', {
                            type : 'tableDetailAction'||'C',
                            label: '编辑活动',
                            url: `/CUSTOMIZED/OMSACTIVEDIT/`+bizid,
                        });
                    }, 10);
                  }
                })

          } else if (title == "goods") {
            virtual={
                "id": 10699,
                "menu_type": "TABLE",
                "permission": "QUERY"
              }
              network.post('/p/cs/permission/has',virtual).then((res) => {
                  if(!res.data){
                    this.$Message.warning('该账号无权限,不能跳转');
                  }else{
                    if (bizid) {
                        tableName = 'T_IESPRODUCT';
                        // 1、先关闭
                        this.tabClose(tableName);
                        // 2、再打开
                        setTimeout(function () {
                            window.parent.R3.store.commit('global/tabOpen', {
                                type: 'tableDetailVertical'||'V',
                                tableName: tableName,
                                tableId: '10699',
                                id: bizid
                            });
                        }, 10);
                    }
                  }
              })

          } else if (title == "notice") {
              window.Opener.openWindow(this, "通知公告明细", "/WebRest/Object?tableId=259&command=onView&id=" + bizid, { window: window, width: 680, height: 400 });
          }
      },
      //营销活动表格跳转
      jumpActivity(e){
        let bizid= e.ID
        this.activeinfo(bizid,'active')
      },
      // 营销活动选择阶段 对应表格
      getactivityActive(index){
        this.activityIsActive=index
        this.activitycurrentPage=1
        // 调接口请求数据
        this.getANowActivityData()
      },
      //获取营销活动当前页表格数据
      getANowActivityData(){
        // 获取当前标准时间
        this.setEormat()
        var systime = new Date();
        var oneYearAge=new Date();
        oneYearAge.setFullYear(new Date().getFullYear() - 1);//一年前
        var oneYearAfter=new Date();
        oneYearAfter.setFullYear(new Date().getFullYear() + 1);//一年后
        let orderby; // 排序方式
        if (this.activityIsActive == 0) { //正在进行
          this.activityFixedcolumns = {
            ENDTIME: systime.format("yyyy-MM-dd hh:mm:ss")+'~'+oneYearAfter.format("yyyy-MM-dd hh:mm:ss"),
            STARTTIME: oneYearAge.format("yyyy-MM-dd hh:mm:ss")+'~'+systime.format("yyyy-MM-dd hh:mm:ss"),

            // ENDTIME: '>=' + systime.format("yyyy-MM-dd hh:mm:ss"),
            // STARTTIME: '<' + systime.format("yyyy-MM-dd hh:mm:ss")
          }
          orderby = [{column: 'ENDTIME', asc: true}];
        }else{ //即将开始
          this.activityFixedcolumns = {
            // STARTTIME: '>=' + systime.format("yyyy-MM-dd hh:mm:ss")
            STARTTIME: systime.format("yyyy-MM-dd hh:mm:ss")+'~'+oneYearAfter.format("yyyy-MM-dd hh:mm:ss"),
          }
          orderby = [{column: 'STARTTIME', asc: true}];
        }
        var virtual={
          fixedcolumns: this.activityFixedcolumns,
          fkdrplist: {
            orderby: orderby,
            searchcols: ['STARTTIME', 'ENDTIME', 'TITLE', 'ID', 'SUMCURNUM', 'ISACTIVE']
          },
          // isdroplistsearch: false,
          range: 7,
          startindex:(this.activitycurrentPage-1)*7,
          table: "T_V_OMSTOPACTIVE"
        }
        network.post('/p/cs/list/query',virtual).then((res) => {
          // console.log(res.data.rows)
          if(res.data.total<42){
            this.activityTotal=res.data.total
          }else{
            this.activityTotal=42
          }
          let data = [];
          for (let i = 0; i < res.data.rows.length; i++) {
            for (let j = 0; j < Object.keys(res.data.rows[i]).length; j++) {
              let keyName = Object.keys(res.data.rows[i])[j];
              res.data.rows[i][keyName] = res.data.rows[i][keyName].val;
            }
            data.push(res.data.rows[i]);
          }
          this.activityData=data //渲染表格数据
        })
      },
      // 营销活动切换页码
      activityChangePage(val){
        this.activitycurrentPage = val;
        this.getANowActivityData()
      },
      // 经营状况起止时间
      rangeDate(date){
        console.log(date,111)
        if(date[0]==''){
          this.$Message.error('开始时间不能为空');
          return
        }
        this.manageIsActive=-1//点击按钮选择时间段失效
        this.ActiveSumVirtual={
          endTime: date[1],
          report: "sum",
          startTime: date[0]
        }
        this.loadBusinessFn(this.ActiveSumVirtual);
      },
      // 获取经营状况的数据
      async loadBusinessFn(reqParam) {
        if (this.isRequesting) return;
        if(this.shopIds){
          reqParam.shopIds=this.shopIds
        }else{
          reqParam.shopIds=undefined
        }
        this.startTime = reqParam.startTime
        this.endTime = reqParam.endTime
        this.isRequesting = true;
        const res = await network.post('/p/cs/watchboard/businessOverviewnew', reqParam);
        const resultData = res.data || {};
        const { code, data } = resultData || {};
        if (code == 0) {
          this.isRequesting = false;
          const { current, last, region_sale_view_list:viewList ,} = data || {};
          const curData = current;
          // 1 整体经营概况:订单数,已发货订单数,已退订单数,销售额,售后退款总额
          curData.REFUNDPRICEE = current.REFUNDPRICEE == 0 ? 0 : current.REFUNDPRICEE.toFixed(0);
          curData.ORDERPRICE = current.ORDERPRICE == 0 ? 0 : current.ORDERPRICE.toFixed(0);
          this.manageDataNow = curData;
          // 2各个数量的：前一天，前一周，前一个月
        
          let lastData = last;
          if(lastData){
            lastData.REFUNDPRICEE = last.REFUNDPRICEE == 0 ? 0 : last.REFUNDPRICEE.toFixed(0);
            lastData.ORDERPRICE = last.ORDERPRICE == 0 ? 0 : last.ORDERPRICE.toFixed(0);
          }
          this.manageDataBefore = lastData || {};

          // 3 地图
          this.areasalerank(viewList);
          // 4 折线图
          this.initdata = current;
          this.salechartscom(this.initdata, this.startTime, this.endTime,this.shopName);//通用方法
        } else {
          this.isRequesting = false;
        }
      },
      //将省份所有价格重置成0
      mappriceinit(price) {
       this.provincePrice=this.province.rows.map((item, index)=>{
          return {
            id:item.id,
            name:item.name,
            spell:item.spell,
            price:'0.00'
          }
        });
      },
      // 获取经销概况当前时间图表
      getManageActive(index){
        this.manageIsActive=index
        this.getStandardDate()// * 获取本周、本月、上月的起止日期
      },
      // * 获取本周、本季度、本月、上月的开端日期、停止日期
      getStandardDate(){
        var now = new Date(); //当前日期
        var nowDayOfWeek = now.getDay()-1; //今天本周的第几天 从周一开始算
        var nowDay = now.getDate(); //当前日
        var nowMonth = now.getMonth(); //当前月
        var nowYear = now.getYear(); //当前年
        nowYear += (nowYear < 2000) ? 1900 : 0;
        var lastMonthDate = new Date(); //上月日期
        lastMonthDate.setDate(1);
        lastMonthDate.setMonth(lastMonthDate.getMonth()-1);
        var lastMonth = lastMonthDate.getMonth();
        if(this.manageIsActive==0){ //本日
          this.startDate=[this.formatDate(now),this.formatDate(now)] //日期选择器双向绑定
          this.beforeIsActive='昨日'
          var LastDay=this.formatDate(new Date(nowYear, nowMonth, nowDay-1));
          this.ActiveSumVirtual={
              startTime: this.formatDate(now),
              lastStartTime:LastDay,
              endTime: this.formatDate(now),
              lastEndTime:LastDay,
              report: "sum"
          }
        }else if(this.manageIsActive==1){ //本周
          this.beforeIsActive='上周'
          var weekStartDate = this.formatDate(new Date(nowYear, nowMonth, nowDay - nowDayOfWeek));
          var weekEndDate = this.formatDate(new Date(nowYear, nowMonth, nowDay + (6 - nowDayOfWeek)));
          var LastWeekStartDate = this.formatDate(new Date(nowYear, nowMonth, nowDay - nowDayOfWeek - 7));
          var LastWeekEndDate = this.formatDate(new Date(nowYear, nowMonth, nowDay - nowDayOfWeek - 1));
          this.startDate=[weekStartDate,weekEndDate] //日期选择器双向绑定
          this.ActiveSumVirtual={
              startTime: weekStartDate,
              lastStartTime: LastWeekStartDate,
              endTime: weekEndDate,
              lastEndTime: LastWeekEndDate,
              report: "sum"
          }
        }else if(this.manageIsActive==2){ //本月
          this.beforeIsActive='上月'
          var lastMonthStartDate=this.formatDate(new Date(nowYear, lastMonth, 1))//获得上月开端时候
          var lastMonthEndDate=this.formatDate(new Date(nowYear, lastMonth, this.getMonthDays(nowYear,lastMonth)))//获得上月停止时候
          var monthStartDate = this.formatDate(new Date(nowYear, nowMonth, 1));
          var monthEndDate = this.formatDate(new Date(nowYear, nowMonth,  this.getMonthDays(nowYear,nowMonth)));
          this.startDate=[monthStartDate,monthEndDate] //日期选择器双向绑定
          this.ActiveSumVirtual={
            startTime: monthStartDate,
            lastStartTime: lastMonthStartDate,
            endTime: monthEndDate,
            lastEndTime: lastMonthEndDate,
            report: "sum"
          }
        }
        this.loadBusinessFn(this.ActiveSumVirtual);
      },
      // 初始化店铺列表
      getShopArr(){
       let data= {
          table: "T_V_IESSHOP",
          range: 1000,
          isdroplistsearch: true,
          fkdrplist: {
            searchcols: ["ID", "SHOPTITLE"]
          }
        }
        network.post('/p/cs/list/query',data).then((res) => {
            if(res.data.rows.length){
              this.shopList=res.data.rows.map(item=>{
                return {
                  value: item.ID.val,
                  label: item.SHOPTITLE.val
                }
              })
            }
        })
      },
        // 数组去重方法
      // distinct1(arr,key){
      //     var newobj = {},newArr = [];
      //     for(var i=0;i<arr.length;i++){
      //         var item = arr[i];
      //       if(!newobj[item[key]]){
      //             newobj[item[key]] = newArr.push(item);
      //       }
      //     }
      //     return newArr;
      // },
      changeShopArr(val,deffArr){
        if(val.length){
          if(val.some(item=>Object.hasOwnProperty.call(item,'label'))){ //全选时第一次传入没有label
          console.log(this.$refs.DropDownCom.choosedExpress,1111)
            this.shopName=''
            this.shopIds=''
            this.choosedExpressList = []
            let Data = [...val].filter(x => [...this.selectShopArr].every(y => y.value !== x.value));
            this.selectShopArr=[...this.selectShopArr,...Data]
            if(deffArr.length){
              this.selectShopArr=this.selectShopArr.filter(x => [...deffArr].every(y => y.value !== x.value)) //过滤掉取消项
              console.log(this.selectShopArr,'过滤掉取消项')
            }

            this.selectShopArr.forEach(item=>{
              this.choosedExpressList.push(String(item.value))
              this.shopName= this.shopName==''?item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''):(this.shopName+','+item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''))
              this.shopIds=this.shopIds==''?item.value:this.shopIds+','+item.value
            })
            this.$refs.DropDownCom.choosedExpress = this.choosedExpressList
          }
        }else{ //当前下拉列表里全部清空
          this.shopName=''
          this.shopIds=''
          this.choosedExpressList = []
          if(deffArr.length){
            this.selectShopArr=this.selectShopArr.filter(x => [...deffArr].every(y => y.value !== x.value)) //过滤掉取消项
            console.log(this.selectShopArr,'过滤掉取消项')
          }

          this.selectShopArr.forEach(item=>{
            this.choosedExpressList.push(String(item.value))
            this.shopName= this.shopName==''?item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''):(this.shopName+','+item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''))
            this.shopIds=this.shopIds==''?item.value:this.shopIds+','+item.value
          })
          this.$refs.DropDownCom.choosedExpress = this.choosedExpressList
        }
        this.loadBusinessFn(this.ActiveSumVirtual);
      },
      getEnterExpressList(val){
        let data= {
          table: "T_V_IESSHOP",
          range: 1000,
          isdroplistsearch: true,
          fkdrplist: {
            searchcols: ["ID", "SHOPTITLE"]
          },
          fixedcolumns: { SHOPTITLE: val},
        }
        this.$refs.DropDownCom.choosedExpress = this.choosedExpressList
        network.post('/p/cs/list/query',data).then((res) => {
            this.shopList=res.data.rows.map(item=>{
              return {
                value: item.ID.val,
                label: item.SHOPTITLE.val
              }
            })
            // console.log('店铺列表',this.shopList)
        })
      },
      deleteShop(obj,index){ //删除某一检索项
        this.$refs.DropDownCom.choosedExpress= this.$refs.DropDownCom.choosedExpress.filter(item=>{
          return obj.value!=item
        })
        this.selectShopArr=this.selectShopArr.filter(item=>{
          return obj.value!=item.value
        })
        this.shopName=''
        this.shopIds=''
        this.choosedExpressList = []
        this.selectShopArr.forEach(item=>{
          this.choosedExpressList.push(String(item.value))
          this.shopName= this.shopName==''?item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''):(this.shopName+','+item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''))
          this.shopIds=this.shopIds==''?item.value:this.shopIds+','+item.value
        })
        this.$refs.DropDownCom.choosedExpress = this.choosedExpressList
        this.loadBusinessFn(this.ActiveSumVirtual);
      },
      clearAllFilter(value){ //清空带有筛选的检索项
        value.forEach(itemOne => {
          this.selectShopArr.forEach((item,index) => {
            if(itemOne.value == item.value){
              this.selectShopArr.splice(index, 1);
            }
          })
        })
        this.choosedExpressList = [];
        this.selectShopArr.forEach(item=>{
          this.choosedExpressList.push(String(item.value))
          this.shopName= this.shopName==''?item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''):(this.shopName+','+item.label.replace(/[\r\n]/g, '').replace(/\ +/g, ''))
          this.shopIds=this.shopIds==''?item.value:this.shopIds+','+item.value
        })
        this.$refs.DropDownCom.choosedExpress = this.choosedExpressList
        this.loadBusinessFn(this.ActiveSumVirtual);
      },
      clearAll(){ //清空全部检索项
          this.$refs.DropDownCom.choosedExpress=[]//检索项清空
          this.selectShopArr=[]
          this.shopName=''
          this.shopIds=''
          this.loadBusinessFn(this.ActiveSumVirtual);
      },
      showAll(){ //显示所有搜索项
        this.isShow=!this.isShow
        if(this.isShow){
          this.showAllText='收起'
          document.getElementsByClassName('selectGroup')[0].style.height='auto'
        }else{
          document.getElementsByClassName('selectGroup')[0].style.height='52px'
          this.showAllText='展开'
        }

      }
    }
  };
</script>
<style scoped lang="less">
@import '../../iframe/Content/WTable/css/map.css';
.pageContent {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
  }
#wrapper{
  width:calc(100% + 30px) ;
  margin-left: -15px;
  margin-right: -15px;
  // height: calc(100vh - 70px);
  height: 100%;
  overflow: auto;
  // overflow-x:hidden;

  .welcome-content {
    height: calc(100% - 0px);
    overflow: auto;


    .ark-row .ark-col-span-11{
      padding-left: 0!important;
    }
    .bestSell,
     .MarketActivity
    {
      margin-top: 5px!important;
    }
    .chartContent{
      padding-top: 5px!important;
    }
  }
  #searchkey{
    .searchBtn /deep/ .iconios-search{
      font-size: 20px;
    }
  }
  #searchkey /deep/ .ark-input{
    height: 36px;
  }
  .page-wrapper{
    // 左边
    .orderMsg{
      margin-top: 16px;
      .orderMsgTitle{
        height: 20px;
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 20px;
        display: flex;
      }
      .agentOrder{
        margin-top: 9px;
        .title{
          height: 17px;
          font-size: 12px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #333333;
          line-height: 17px;
          display: flex;
          justify-content: space-between;
          margin-bottom: 12px;
        }
        .add-panel-icon {
          cursor: pointer;
          height: 78px;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #d8d8d8;
        }
        .content /deep/.ark-col{
          padding: 0 0 5px 0;
          padding-right: 0!important;
          width: calc((100%-40px)/5)!important;
          .hover-drag {
              cursor: pointer;
          }
          .contentPart{
            padding: 6px;
            background-color: #ECF2FF;
            width: 100%;
            //height: 68px;
            display: flex;
            // flex-direction: column;
            // justify-content: center;
            flex-direction: row;
            justify-content: space-between;
            position: relative;
            // .ark-poptip-body-content {
            //   height: 130px;
            //   overflow-y: auto;
            // }
            .remove-panel-icon {
              position: absolute;
              top: -8px;
              right: -8px;
              cursor: pointer;
              color: #E54545;
            }
            .itemText{
              margin-bottom: 6px;
              height: 16px;
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #333333;
              line-height: 16px;
            }
            .itemNum{
              height: 22px;
              font-size: 20px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #333333;
              line-height: 22px;
            }
          }
        }
      }
      .warnOrder{
        .content /deep/.ark-col{
          width: calc((100%-40px)/5)!important;
          .contentPart{
            background: #FFF7F6;
          }
          .childItem{
            flex-direction: row;
            justify-content: space-between;
          }
        }
      }
    }
    // 畅销商品
    .bestSell{
      // height: 393px;
      margin-top: 12px;
      background-color: #ffffff;
      padding: 16px;
      .bestSellTop{
        display: flex;
        justify-content: space-between;
        margin-bottom: 16px;
        .orderMsgTitle{
          height: 20px;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 20px;
          display: flex;
        }
        .searchDay{
          display: flex;
          .itemDay{
            width: 68px;
            height: 28px;
            border-radius: 0px 2px 2px 0px;
            border: 1px solid #DADADA;
            font-size: 11px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #999999;
            line-height: 26px;
            text-align: center;
            cursor: pointer;
          }
          .active{
              background: #ECF2FF;
              border-radius: 2px 0px 0px 2px;
              border: 1px solid var(--primary-color);
              color: var(--primary-color);
          }
        }
      }


    }
    //右边
    .welcomePage{
        background-color: #ffffff;
        height: 404px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        .version{
          margin-bottom: 20px;
          .title{
            height: 17px;
            font-size: 12px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #333333;
            line-height: 17px;
          }
          .content{
            padding: 20px 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            border-bottom:1px solid #E9E9E9;;
          }
        }
        .companyMsg{
          flex: 1;
          display: flex;
          flex-direction: column;
          width: 50%;
          .title{
            height: 20px;
            font-size: 14px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #333333;
            line-height: 20px;
            display: flex;
            justify-content: space-between;
            padding-right: 10px;
          }
          .detail{
            padding-top: 16px;
            flex: 1;
            height: 100%;
            overflow: hidden;
            .detail-item{
              display: flex;
              justify-content: space-between;
              margin-bottom: 6px;
              height: 34px;
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              line-height: 34px;
              padding-right: 12px;
              background-color:#FDF3F2;;
              border-left: 2px solid #E54545;
            }
            .detail-item:hover{
              background-color: #FEEFED;
            }
             .detail-item1{
              display: flex;
              justify-content: space-between;
              margin-bottom: 6px;
              height: 34px;
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              line-height: 34px;
              padding-right: 12px;
              background-color:#ECF2FF;;
              border-left: 2px solid var(--primary-color);
            }
            .detail-item1:hover{
              background-color: #E7EEFE;
            }
            .redword{
              color: #E54545;
            }
            .blueword{
              color:#323232
            }
          }
        }
        .companyMsg:first-child {
          width: calc(50% - 8px);
          margin-right: 8px;
        }
    }
    // 营销活动
    .MarketActivity{
      // height: 393px;
      margin-top: 12px;
      background-color: #ffffff;
      padding: 16px;
      .ActivityTop{
        display: flex;
        justify-content: space-between;
        margin-bottom: 16px;
        .orderMsgTitle{
          height: 20px;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 20px;
          display: flex;
        }
        .searchDay{
          display: flex;
          .itemDay{
            width: 68px;
            height: 28px;
            border-radius: 0px 2px 2px 0px;
            border: 1px solid #DADADA;
            font-size: 11px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #999999;
            line-height: 26px;
            text-align: center;
            cursor: pointer;
          }
          .active{
              background: #ECF2FF;
              border-radius: 2px 0px 0px 2px;
              border: 1px solid var(--primary-color);
              color: var(--primary-color);
          }
        }
      }
    }
    // 下边
    .chartContent{
      padding-top: 13px;
      background: #F2F2F2;
      >div{
        background-color: #ffffff;
        height: 638px;
        padding: 16px;
        .title{
          height: 20px;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 20px;
          display: flex;
        }
        .timeSelect{
          margin: 16px 0;
          display: flex;
          justify-content: space-between;
          .rightSelect{
              display: flex;
              .itemDay{
                width: 68px;
                height: 28px;
                border-radius: 0px 2px 2px 0px;
                border: 1px solid #DADADA;
                font-size: 11px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #999999;
                line-height: 26px;
                text-align: center;
                cursor: pointer;
              }
              .active{
                  background: #ECF2FF;
                  border-radius: 2px 0px 0px 2px;
                  border: 1px solid var(--primary-color);
                  color: var(--primary-color);
              }
          }
        //   .leftSelect /deep/.ark-date-picker{
        //     .ark-select-dropdown{
              // left:10px !important;
        //     }
        //   }
        }
        .shopSelect{
          .selectPart{
            display: flex;
            .selectGroup{
              flex: 1;
              height:52px;
              overflow: hidden;
              margin-top: 8px;
              display: flex;
              flex-wrap: wrap;
              .groupItem{
                background: #F2F2F2;
                border-radius: 2px;
                margin-right:8px;
                margin-bottom:8px;
                padding: 0 8px;
                height: 18px;
                font-size: 11px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #333333;
                line-height: 16px;
              }
            }
            .selectBtn{
              display: flex;
              height:40px;
              color:#0F6AFB;
              font-family: PingFangSC-Medium, PingFang SC;
              font-weight: 500;

            }
          }

        }
        .mansgeMsg{
          margin-top: 24px;
          margin-bottom: 29px;
          .ark-col-span-4{
            width: 20%;
            height: 107px;
            border-right: 1px solid #F2F2F2 ;
            padding-left:8px;
            .echartvisit {
                border: 1px solid var(--primary-color);
                background-color: #ECF2FF;
                margin-right:8px;
            }
            .part{
              padding-left: 8px;
              padding: 8px;
              .title{
                height: 17px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #333333;
                line-height: 17px;
              }
              .now{
                height: 37px;
                font-size: 26px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: var(--primary-color);
                line-height: 37px;
                margin: 12px 0;
              }
              .before{
                height: 17px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #9A9A9A;
                line-height: 17px;
              }
            }

          }
        }
      }
    }
  }
}

.animated {
  	animation:mymove 1.5s infinite;
	  -webkit-animation:mymove 1.5s infinite;
}
@keyframes mymove{
	  0% {transform: translate(0px, 0px);}
    50% {transform: translate(0px, -10px);}
	  100% {transform: translate(0px, 0px);}
}
</style>

<style lang="less">
#wrapper {
  .add-module-modal {
    .ark-modal-mask {
      position: absolute;
    }
    .ark-modal-wrap {
      position: absolute;
    }
  }
}
</style>
